From bce3ace1a031f0c6ae2798c37f93a01fc0ec6b24 Mon Sep 17 00:00:00 2001 From: Amos Date: Thu, 11 Apr 2024 13:49:44 +0800 Subject: [PATCH] Update: test_coverage.yml --- .github/workflows/test_coverage.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index 684f3b7..99b6fc6 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -1,5 +1,5 @@ -name: "test coverage" -run-name: "Test Coverage" +name: 'test coverage' +run-name: 'Test Coverage' on: workflow_dispatch: @@ -7,18 +7,18 @@ on: 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,15 +40,18 @@ 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 @@ -56,8 +59,8 @@ jobs: - 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