Skip to content

Commit

Permalink
conditionally run on flutter test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieastley committed Feb 16, 2024
1 parent 0bb9d3d commit 275a30f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pop_pop_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ jobs:
- run: flutter pub get
- run: flutter analyze
- run: flutter test --coverage
id: flutterTest

- name: Upload golden test failures
uses: actions/upload-artifact@v4
if: failure()
if: failure() && steps.flutterTest.outcome == 'failure'
with:
name: test-failures
path: packages/pop_pop/test/failures/

0 comments on commit 275a30f

Please sign in to comment.