Skip to content

Commit

Permalink
Update: test_coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed Apr 11, 2024
1 parent a002918 commit bce3ace
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: "test coverage"
run-name: "Test Coverage"
name: 'test coverage'
run-name: 'Test Coverage'

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- "**.md"
- "example/**"
- '**.md'
- 'example/**'
pull_request:
branches:
- main
paths-ignore:
- "**.md"
- "example/**"
- '**.md'
- 'example/**'

jobs:

code_analysis:
code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -40,24 +40,27 @@ jobs:
dart pub global activate dartdoc
dart pub global run dartdoc .
test_minimum_version:
needs: [code_analysis]
test:
needs: [code-analysis]
runs-on: ubuntu-latest
strategy:
matrix:
flutter-version: ['3.19.0', '']
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.19.0'
flutter-version: ${{ matrix.flutter-version }}
- name: Prepare dependencies
run: |
flutter --version
flutter pub get
- name: Test
run: flutter test

test_latest_version:
needs: [code_analysis]
upload-test-coverage:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

0 comments on commit bce3ace

Please sign in to comment.