Skip to content

Commit

Permalink
Debug working-directory workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jul 29, 2024
1 parent a98baf0 commit ad6bcb9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test-working-directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ jobs:
if: always() && steps.no-work-dir.outputs.exitcode != '2'
run: |
echo "::error::Darker should have failed with exit code 2"
echo "::error::It exited with ${{ steps.no-work-dir.outputs.exitcode }}"
exit 1
- name: Debug output
run: echo '${{ toJson(steps.no-work-dir.outputs) }}'

- name: Run Darker with correct working-directory
id: right-workdir
if: always()
Expand All @@ -54,6 +58,7 @@ jobs:
if: always() && steps.right-workdir.outputs.exitcode != '1'
run: |
echo "::error::Darker should have exited with code 1"
echo "::error::It exited with ${{ steps.right-workdir.outputs.exitcode }}"
exit 1
- name: Verify diff output
Expand All @@ -78,6 +83,7 @@ jobs:
if: always() && steps.wrong-work-dir.outputs.exitcode != '21'
run: |
echo "::error::Darker should have exited with code 21"
echo "::error::It exited with ${{ steps.wrong-work-dir.outputs.exitcode }}"
exit 1
- name: Test file not found error
Expand All @@ -95,6 +101,7 @@ jobs:
if: always() && steps.file-not-found.outputs.exitcode != '2'
run: |
echo "::error::Darker should have exited with code 2"
echo "::error::It exited with ${{ steps.file-not-found.outputs.exitcode }}"
exit 1
- name: Test invalid arguments error
Expand All @@ -110,6 +117,7 @@ jobs:
if: always() && steps.invalid-arguments.outputs.exitcode != '3'
run: |
echo "::error::Darker should have exited with code 3"
echo "::error::It exited with ${{ steps.invalid-arguments.outputs.exitcode }}"
exit 1
- name: Test missing dependencies error
Expand All @@ -126,4 +134,5 @@ jobs:
if: always() && steps.missing-deps.outputs.exitcode != '4'
run: |
echo "::error::Darker should have exited with code 4"
echo "::error::It exited with ${{ steps.missing-deps.outputs.exitcode }}"
exit 1

0 comments on commit ad6bcb9

Please sign in to comment.