Skip to content

Commit

Permalink
Cancel workflows on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Aug 18, 2023
1 parent 9de121e commit 3ec7264
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ jobs:
- name: Analize auth0_flutter package
working-directory: auth0_flutter
run: flutter analyze

- name: Analize auth0_flutter_platform_interface package
working-directory: auth0_flutter_platform_interface
run: flutter analyze

- name: Cancel wokflow on failure
uses: andymckay/cancel-action@b9280e3f8986d7a8e91c7462efc0fa318010c8b1
if: ${{ failure() }}

test-flutter:
name: Test Flutter packages
runs-on: ubuntu-latest
Expand All @@ -56,7 +60,7 @@ jobs:
run: |
flutter test --tags browser --platform chrome
flutter test --coverage --exclude-tags browser
- name: Test auth0_flutter_platform_interface package
working-directory: auth0_flutter_platform_interface
run: flutter test --coverage
Expand All @@ -74,3 +78,7 @@ jobs:
name: Auth0 Flutter
flags: auth0_flutter_platform_interface
files: ./auth0_flutter_platform_interface/coverage/lcov.info

- name: Cancel wokflow on failure
uses: andymckay/cancel-action@b9280e3f8986d7a8e91c7462efc0fa318010c8b1
if: ${{ failure() }}

0 comments on commit 3ec7264

Please sign in to comment.