Skip to content

Commit

Permalink
fix: save goldens
Browse files Browse the repository at this point in the history
  • Loading branch information
Equartey committed Aug 31, 2023
1 parent 496b310 commit e40f8ca
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/flutter_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,27 @@ jobs:
working-directory: ${{ inputs.working-directory }}

- name: Run Tests
id: test
if: "always() && steps.bootstrap.conclusion == 'success' && steps.testCheck.outputs.hasTests == 'true'"
run: flutter test
working-directory: ${{ inputs.working-directory }}

- name: Check for golden failures directory
if: "always() && steps.test.conclusion == 'success'"
id: check_golden_failures
working-directory: ${{ inputs.working-directory }}
run: |
if [ -d "/test/ui/failures" ]
then
echo "hasFailures=true" >> $GITHUB_OUTPUT
else
echo "hasFailures=false" >> $GITHUB_OUTPUT
fi
- name: Archive golden failures
if: "always() && steps.check_golden_failures.outputs.hasFailures == 'true'"
uses: actions/upload-artifact@v3
working-directory: ${{ inputs.working-directory }}
with:
name: golden-failures
path: /test/ui/failures

0 comments on commit e40f8ca

Please sign in to comment.