Skip to content

Commit

Permalink
ci: reorder steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Spotika committed Sep 12, 2024
1 parent 68c940a commit fc37410
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,20 @@ jobs:
docker compose logs -f test > test_logs.txt
continue-on-error: true

- name: Show test logs
run: docker compose logs --no-log-prefix test
continue-on-error: true

- name: Cleanup
run: docker compose down -v --rmi all
continue-on-error: true

- name: Check test results
run: |
if grep -q "Test Suites: .* failed" test_logs.txt; then
echo "Tests failed"
exit 1
else
echo "Tests passed"
fi
fi;
- name: Show test logs
run: docker compose logs --no-log-prefix test
continue-on-error: true

- name: Cleanup
run: docker compose down -v --rmi all
continue-on-error: true

0 comments on commit fc37410

Please sign in to comment.