Skip to content

Commit

Permalink
Test pass/fail check
Browse files Browse the repository at this point in the history
  • Loading branch information
younglim committed Jul 23, 2024
1 parent 4a2acf4 commit 1baf5fe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/docker-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ jobs:
chmod +x ./shell_scripts/start_docker.sh
./shell_scripts/start_docker.sh "${{ github.event.inputs.A11Y_CHECKOUT || 'git+https://github.com/GovTechSG/purple-a11y.git#master' }}"
continue-on-error: true


- name: Capture start_docker exit code
id: capture_exit_code
run: echo "exit_code=${{ steps.start_docker.outcome == 'failure' && '1' || '0' }}" >> $GITHUB_ENV

- name: Run stop_docker.sh script
run: |
chmod +x ./shell_scripts/stop_docker.sh
Expand All @@ -41,3 +45,7 @@ jobs:
with:
name: cypress-reports
path: cypress-reports.zip

- name: Fail job if start_docker.sh failed
if: env.exit_code == '1'
run: exit 1

0 comments on commit 1baf5fe

Please sign in to comment.