-
-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (36 loc) · 1017 Bytes
/
fprettify-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: fprettify-lint
on:
push:
branches:
- master
- main
paths-ignore:
- 'AUTHORS.md'
- 'LICENSE.md'
- 'README.md'
pull_request:
paths-ignore:
- 'AUTHORS.md'
- 'LICENSE.md'
- 'README.md'
jobs:
fprettify:
name: fprettify-check
runs-on: ubuntu-22.04
strategy:
fail-fast: false
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Check for formatting differences
run: |
pip3 install fprettify
if [[ $(fprettify './src/' --config-file ./fprettify.config -d --recursive --case 1 1 1 1) ]]; then
fprettify './src/' --config-file ./fprettify.config -d --recursive --case 1 1 1 1
exit 1
else
echo "linting passed!"
fi