|
16 | 16 |
|
17 | 17 | jobs:
|
18 | 18 | uncrustify-formatting-success-cases:
|
19 |
| - runs-on: ubuntu-20.04 |
20 |
| - steps: |
21 |
| - - uses: actions/checkout@v3 |
| 19 | + runs-on: ubuntu-20.04 |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v3 |
22 | 22 |
|
23 |
| - - env: |
24 |
| - stepName: "Functional | Success | Exclude Files and Dirs" |
25 |
| - name: ${{ env.stepName }} |
26 |
| - id: exclude-dirs-with-errors |
27 |
| - uses: ./formatting |
28 |
| - with: |
29 |
| - path: formatting/goodFiles |
30 |
| - exclude-dirs: "fileWithErrorInclude, fileWithErrorSource" |
31 |
| - exclude-files: "formatErrorTest.h, formatErrorTest.c" |
| 23 | + - env: |
| 24 | + stepName: "Functional | Success | Exclude Files and Dirs" |
| 25 | + name: ${{ env.stepName }} |
| 26 | + id: exclude-dirs-with-errors |
| 27 | + uses: ./formatting |
| 28 | + with: |
| 29 | + path: formatting/goodFiles |
| 30 | + exclude-dirs: "fileWithErrorInclude, fileWithErrorSource" |
| 31 | + exclude-files: "formatErrorTest.h, formatErrorTest.c" |
32 | 32 |
|
33 |
| - - env: |
34 |
| - stepName: "Functional | Success | Exclude Just Files" |
35 |
| - name: ${{ env.stepName }} |
36 |
| - id: exclude-files-with-errors |
37 |
| - uses: ./formatting |
38 |
| - with: |
39 |
| - path: formatting/goodFiles |
40 |
| - exclude-dirs: ",,," |
41 |
| - exclude-files: "errorFileInDirectory.h, formatErrorTest.h, errorFileInDirectory.c, formatErrorTest.c" |
| 33 | + - env: |
| 34 | + stepName: "Functional | Success | Exclude Just Files" |
| 35 | + name: ${{ env.stepName }} |
| 36 | + id: exclude-files-with-errors |
| 37 | + uses: ./formatting |
| 38 | + with: |
| 39 | + path: formatting/goodFiles |
| 40 | + exclude-dirs: ",,," |
| 41 | + exclude-files: "errorFileInDirectory.h, formatErrorTest.h, errorFileInDirectory.c, formatErrorTest.c" |
42 | 42 |
|
43 |
| - - name: Remove Error Files at Top Directory |
44 |
| - working-directory: formatting/goodFiles |
45 |
| - shell: bash |
46 |
| - run: | |
47 |
| - # Remove Error Files at Top Directory |
48 |
| - # Do a git remove since we use a git diff to check if formatting fails |
49 |
| - git rm $(find . -name "formatErrorTest.c") |
50 |
| - git rm $(find . -name "formatErrorTest.h") |
| 43 | + - name: Remove Error Files at Top Directory |
| 44 | + working-directory: formatting/goodFiles |
| 45 | + shell: bash |
| 46 | + run: | |
| 47 | + # Remove Error Files at Top Directory |
| 48 | + # Do a git remove since we use a git diff to check if formatting fails |
| 49 | + git rm $(find . -name "formatErrorTest.c") |
| 50 | + git rm $(find . -name "formatErrorTest.h") |
51 | 51 |
|
52 |
| - - env: |
53 |
| - stepName: "Functional | Success | Exclude Just Error Dirs" |
54 |
| - name: ${{ env.stepName }} |
55 |
| - id: exclude-two-files-two-dirs |
56 |
| - uses: ./formatting |
57 |
| - with: |
58 |
| - path: formatting/goodFiles |
59 |
| - exclude-dirs: "fileWithErrorInclude, fileWithErrorSource" |
| 52 | + - env: |
| 53 | + stepName: "Functional | Success | Exclude Just Error Dirs" |
| 54 | + name: ${{ env.stepName }} |
| 55 | + id: exclude-two-files-two-dirs |
| 56 | + uses: ./formatting |
| 57 | + with: |
| 58 | + path: formatting/goodFiles |
| 59 | + exclude-dirs: "fileWithErrorInclude, fileWithErrorSource" |
60 | 60 |
|
61 | 61 | formatting-error-cases:
|
62 | 62 | runs-on: ubuntu-20.04
|
|
0 commit comments