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 1490909
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test-working-directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@ 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
if: always()
run: echo '${{ toJson(steps.no-work-dir.outputs) }}'

- name: Run Darker with correct working-directory
id: right-workdir
if: always()
Expand All @@ -54,6 +59,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 +84,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 +102,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 +118,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 +135,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 1490909

Please sign in to comment.