Skip to content

Commit

Permalink
fix: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Equartey committed Sep 1, 2023
1 parent 11c0ad9 commit 5ffb223
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions .github/workflows/amplify_authenticator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,23 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

runs:
using: "composite"
steps:
- uses: ./.github/workflows/flutter_vm.yaml
with:
package-name: amplify_authenticator
working-directory: packages/authenticator/amplify_authenticator
runner-os: macos-latest
- name: Check for golden failures directory
if: "always()"
id: checkGoldenFailures
working-directory: ${{ inputs.working-directory }}
run: |
if [ -d test/ui/failures ]; then
echo "hasFailures=true" >> $GITHUB_OUTPUT
else
echo "hasFailures=false" >> $GITHUB_OUTPUT
fi
jobs:
test:
uses: ./.github/workflows/flutter_vm.yaml
with:
package-name: amplify_authenticator
working-directory: packages/authenticator/amplify_authenticator
runner-os: macos-latest
save-artifacts:
needs: test
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0

- name: Archive golden failures
if: "always() && steps.checkGoldenFailures.outputs.hasFailures == 'true'"
uses: actions/upload-artifact@v3
with:
name: golden-failures-${{ matrix.channel }}-${{ matrix.flutter-version }}
path: ${{ inputs.working-directory }}/test/ui/failures/
- name: Upload Test Failure Artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: golden-failures-${{ matrix.channel }}-${{ matrix.flutter-version }}
path: packages/authenticator/amplify_authenticator/test/ui/failures/

0 comments on commit 5ffb223

Please sign in to comment.