From b24fcac39f147aa98cd2d66512ab0a012a5ec565 Mon Sep 17 00:00:00 2001 From: narunblog Date: Tue, 1 Aug 2023 01:23:28 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=83=AC=E3=83=9D?= =?UTF-8?q?=E3=83=BC=E3=83=88=E9=80=81=E4=BF=A1=E3=81=AE=E3=82=B8=E3=83=A7?= =?UTF-8?q?=E3=83=96=E5=88=86=E5=89=B2=E3=81=8C=E9=9B=A3=E3=81=97=E3=81=84?= =?UTF-8?q?=E3=81=9F=E3=82=81=E3=82=B7=E3=83=AA=E3=82=A2=E3=83=AB=E3=81=A7?= =?UTF-8?q?=E5=AE=9F=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/flutter_test.yaml | 75 +++++++++++++++-------------- 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/.github/workflows/flutter_test.yaml b/.github/workflows/flutter_test.yaml index 26cf829a..f20d261e 100644 --- a/.github/workflows/flutter_test.yaml +++ b/.github/workflows/flutter_test.yaml @@ -47,42 +47,9 @@ jobs: # テストを実行 - name: Run Flutter Test by melos run: melos exec --sdk-path=${{ runner.tool_cache }}/flutter -- "flutter test --machine --coverage > test-report.log" - # # テスト結果を GitHub Actions に表示する - # - name: Report Test - # uses: dorny/test-reporter@v1 - # # テスト結果を表示するのでテストが失敗しても実行する - # if: always() - # with: - # name: Flutter Test Report mottai_flutter_app - # path: /home/runner/work/mottai-flutter-app/mottai-flutter-app/packages/mottai_flutter_app/test-report.log - # reporter: flutter-json - # # Codecov に結果を送信 - # - name: Upload coverage to Codecov - # uses: codecov/codecov-action@v2 - # with: - # token: ${{secrets.CODECOV_TOKEN}} - # file: /home/runner/work/mottai-flutter-app/mottai-flutter-app/packages/mottai_flutter_app/coverage/lcov.info - # fail_ci_if_error: true - # flags: unittests_mottai_flutter_app - # verbose: true - # test report mottai_flutter_app - test_report_mottai_flutter_app: - name: test report mottai_flutter_app - # テストジョブが成功したら実行する - needs: - - flutter_test - # ジョブを実行するOS - runs-on: ubuntu-latest - # タイムアウト時間(分) - timeout-minutes: 10 - # ジョブの手順 - steps: - # ソースコードをチェックアウト - - name: Checkout - uses: actions/checkout@v3 - # テスト結果を GitHub Actions に表示する - - name: Report Test + # mottai_flutter_appのテスト結果を GitHub Actions に表示する + - name: Report Test mottai_flutter_app uses: dorny/test-reporter@v1 # テスト結果を表示するのでテストが失敗しても実行する if: always() @@ -99,3 +66,41 @@ jobs: fail_ci_if_error: true flags: unittests_mottai_flutter_app verbose: true + + # firebase_commonのテスト結果を GitHub Actions に表示する + - name: Report Test firebase_common + uses: dorny/test-reporter@v1 + # テスト結果を表示するのでテストが失敗しても実行する + if: always() + with: + name: Flutter Test Report mottai_flutter_app + path: /home/runner/work/mottai-flutter-app/mottai-flutter-app/packages/firebase_common/test-report.log + reporter: flutter-json + # Codecov に結果を送信 + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{secrets.CODECOV_TOKEN}} + file: /home/runner/work/mottai-flutter-app/mottai-flutter-app/packages/firebase_common/coverage/lcov.info + fail_ci_if_error: true + flags: unittests_firebase_common + verbose: true + + # dart_flutter_commonのテスト結果を GitHub Actions に表示する + - name: Report Test dart_flutter_common + uses: dorny/test-reporter@v1 + # テスト結果を表示するのでテストが失敗しても実行する + if: always() + with: + name: Flutter Test Report dart_flutter_common + path: /home/runner/work/mottai-flutter-app/mottai-flutter-app/packages/dart_flutter_common/test-report.log + reporter: flutter-json + # Codecov に結果を送信 + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{secrets.CODECOV_TOKEN}} + file: /home/runner/work/mottai-flutter-app/mottai-flutter-app/packages/dart_flutter_common/coverage/lcov.info + fail_ci_if_error: true + flags: unittests_dart_flutter_common + verbose: true