Skip to content

Commit 9147041

Browse files
committed
💚 Fixes action tests
1 parent 8119b8a commit 9147041

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/test.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
github_token: ${{ secrets.github_token }}
1616
reporter: github-check
1717
level: info
18+
workdir: ./testdata/
1819

1920
test-check-format:
2021
name: runner / black-format (github-check-format)
@@ -27,6 +28,7 @@ jobs:
2728
reporter: github-check
2829
level: info
2930
format: true
31+
workdir: ./testdata/
3032
- name: Check if formatting was successful
3133
run: |
3234
changed_files=$(git status --porcelain --untracked-files=no | wc -l)
@@ -46,7 +48,7 @@ jobs:
4648
github_token: ${{ secrets.github_token }}
4749
reporter: github-pr-check
4850
level: warning
49-
workdir: ./testdata/subfolder/
51+
workdir: ./testdata/
5052

5153
test-pr-check-format:
5254
if: github.event_name == 'pull_request'
@@ -59,8 +61,8 @@ jobs:
5961
github_token: ${{ secrets.github_token }}
6062
reporter: github-pr-check
6163
level: warning
62-
workdir: ./testdata/subfolder/
6364
format: true
65+
workdir: ./testdata/
6466
- name: Check if formatting was successful
6567
run: |
6668
changed_files=$(git status --porcelain --untracked-files=no | wc -l)
@@ -81,6 +83,7 @@ jobs:
8183
reporter: github-pr-review
8284
level: error
8385
reviewdog_flags: -filter-mode=file -fail-on-error
86+
workdir: ./testdata/
8487

8588
test-pr-review-format:
8689
if: github.event_name == 'pull_request'
@@ -95,10 +98,11 @@ jobs:
9598
level: error
9699
reviewdog_flags: -filter-mode=file -fail-on-error
97100
format: true
101+
workdir: ./testdata/
98102
- name: Check if formatting was successful
99103
run: |
100104
changed_files=$(git status --porcelain --untracked-files=no | wc -l)
101105
if [[ ${changed_files} -eq 0 ]]; then
102106
echo "No changes detected!"
103107
exit 1
104-
fi
108+
fi

0 commit comments

Comments
 (0)