From e5b16edb53be6593d92061a2fd8d1c8cce04262b Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 7 Aug 2025 15:14:36 +0200 Subject: [PATCH 01/10] Update --- .github/workflows/dart.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 35f5ce4e15..952b2a1593 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -6,13 +6,13 @@ on: - release/** pull_request: paths: - - '!**/*.md' - - '!**/class-diagram.svg' - - '.github/workflows/dart.yml' - - '.github/workflows/analyze.yml' - - '.github/actions/dart-test/**' - - '.github/actions/coverage/**' - - 'packages/dart/**' + - "!**/*.md" + - "!**/class-diagram.svg" + - ".github/workflows/dart.yml" + - ".github/workflows/analyze.yml" + - ".github/actions/dart-test/**" + - ".github/actions/coverage/**" + - "packages/dart/**" jobs: cancel-previous-workflow: @@ -24,7 +24,7 @@ jobs: access_token: ${{ github.token }} build: - name: '${{ matrix.os }} | ${{ matrix.sdk }}' + name: "${{ matrix.os }} | ${{ matrix.sdk }}" runs-on: ${{ matrix.os }}-latest timeout-minutes: 30 strategy: @@ -32,7 +32,7 @@ jobs: matrix: os: [ubuntu] sdk: - - '3.5' + - "3.5" - stable - beta include: @@ -55,6 +55,12 @@ jobs: coverage: sentry min-coverage: 85 + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # pin@v1.1.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + - name: Build example working-directory: packages/dart/example run: | From f765b4c4da07f838e8eba6fbaa69ee0a45a873a7 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 7 Aug 2025 17:03:28 +0200 Subject: [PATCH 02/10] Update --- .github/actions/dart-test/action.yml | 15 ++++++++++----- .github/workflows/dart.yml | 3 +++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/actions/dart-test/action.yml b/.github/actions/dart-test/action.yml index cd4fd6c2a1..d6c86bfc49 100644 --- a/.github/actions/dart-test/action.yml +++ b/.github/actions/dart-test/action.yml @@ -4,11 +4,11 @@ inputs: directory: description: The directory to run tests in required: false - default: '' + default: "" web: description: Whether to run tests for web required: false - default: 'true' + default: "true" runs: using: composite @@ -22,21 +22,26 @@ runs: shell: bash working-directory: ${{ inputs.directory }} + - name: Install flutter_junitreport + shell: bash + run: | + dart pub global activate --source git https://github.com/waffiqaziz/flutter-junitreport.git --git-ref main + - name: Test VM working-directory: ${{ inputs.directory }} shell: bash run: | testCmd="dart test -p vm --test-randomize-ordering-seed=random --chain-stack-traces" if ${{ (matrix.os == 'ubuntu' && matrix.sdk == 'stable' && 'true') || 'false' }} ; then - $testCmd --coverage=coverage + $testCmd --coverage=coverage --reporter json > test-vm.jsonl dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib else - $testCmd + $testCmd --reporter json > test-vm.jsonl fi + dart pub global run flutter_junitreport:tojunit --input test-vm.jsonl --output TEST-vm.xml - name: Test dart2js if: ${{ inputs.web == 'true' }} - run: dart test -p chrome --test-randomize-ordering-seed=random --chain-stack-traces shell: bash working-directory: ${{ inputs.directory }} diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 952b2a1593..76eac84da7 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -60,6 +60,9 @@ jobs: uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # pin@v1.1.1 with: token: ${{ secrets.CODECOV_TOKEN }} + name: dart-tests-${{ runner.os }}-${{ matrix.sdk }} + flags: dart + verbose: true - name: Build example working-directory: packages/dart/example From 0f26d0ade7722d93ce30dadc1dd5fd2bafa80a88 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 7 Aug 2025 17:06:02 +0200 Subject: [PATCH 03/10] Update --- .github/actions/dart-test/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/dart-test/action.yml b/.github/actions/dart-test/action.yml index d6c86bfc49..b396a6a10f 100644 --- a/.github/actions/dart-test/action.yml +++ b/.github/actions/dart-test/action.yml @@ -42,6 +42,7 @@ runs: - name: Test dart2js if: ${{ inputs.web == 'true' }} + run: dart test -p chrome --test-randomize-ordering-seed=random --chain-stack-traces shell: bash working-directory: ${{ inputs.directory }} From 7356f351629ea5046796d947210661a98badcf44 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 7 Aug 2025 17:28:35 +0200 Subject: [PATCH 04/10] Update --- .github/actions/dart-test/action.yml | 2 +- .github/workflows/logging.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/actions/dart-test/action.yml b/.github/actions/dart-test/action.yml index b396a6a10f..62d568ccb4 100644 --- a/.github/actions/dart-test/action.yml +++ b/.github/actions/dart-test/action.yml @@ -38,7 +38,7 @@ runs: else $testCmd --reporter json > test-vm.jsonl fi - dart pub global run flutter_junitreport:tojunit --input test-vm.jsonl --output TEST-vm.xml + dart pub global run flutter_junitreport:tojunit --input test-vm.jsonl --output TEST-vm-junit.xml - name: Test dart2js if: ${{ inputs.web == 'true' }} diff --git a/.github/workflows/logging.yml b/.github/workflows/logging.yml index 300605ea29..491222c95c 100644 --- a/.github/workflows/logging.yml +++ b/.github/workflows/logging.yml @@ -49,6 +49,15 @@ jobs: coverage: sentry_logging min-coverage: 90 + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # pin@v1.1.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + name: dart-tests-${{ runner.os }}-${{ matrix.sdk }} + flags: dart + verbose: true + analyze: uses: ./.github/workflows/analyze.yml with: From e1619f96ef02617b95a5567d5b35a24388db9078 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 4 Sep 2025 18:06:50 +0200 Subject: [PATCH 05/10] Update --- .github/actions/dart-test/action.yml | 6 +++--- .github/workflows/dart.yml | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/actions/dart-test/action.yml b/.github/actions/dart-test/action.yml index 62d568ccb4..6ea03cd6f4 100644 --- a/.github/actions/dart-test/action.yml +++ b/.github/actions/dart-test/action.yml @@ -4,11 +4,11 @@ inputs: directory: description: The directory to run tests in required: false - default: "" + default: '' web: description: Whether to run tests for web required: false - default: "true" + default: 'true' runs: using: composite @@ -32,7 +32,7 @@ runs: shell: bash run: | testCmd="dart test -p vm --test-randomize-ordering-seed=random --chain-stack-traces" - if ${{ (matrix.os == 'ubuntu' && matrix.sdk == 'stable' && 'true') || 'false' }} ; then + if [ "${{ matrix.sdk }}" = "stable" ]; then $testCmd --coverage=coverage --reporter json > test-vm.jsonl dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib else diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index b6a43c9f07..a67a97698b 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -6,13 +6,13 @@ on: - release/** pull_request: paths: - - "!**/*.md" - - "!**/class-diagram.svg" - - ".github/workflows/dart.yml" - - ".github/workflows/analyze.yml" - - ".github/actions/dart-test/**" - - ".github/actions/coverage/**" - - "packages/dart/**" + - '!**/*.md' + - '!**/class-diagram.svg' + - '.github/workflows/dart.yml' + - '.github/workflows/analyze.yml' + - '.github/actions/dart-test/**' + - '.github/actions/coverage/**' + - 'packages/dart/**' concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -20,7 +20,7 @@ concurrency: jobs: build: - name: "${{ matrix.os }} | ${{ matrix.sdk }}" + name: '${{ matrix.os }} | ${{ matrix.sdk }}' runs-on: ${{ matrix.os }}-latest timeout-minutes: 30 strategy: @@ -28,7 +28,7 @@ jobs: matrix: os: [ubuntu] sdk: - - "3.5" + - '3.5' - stable - beta include: @@ -52,12 +52,12 @@ jobs: min-coverage: 85 - name: Upload test results to Codecov - if: ${{ !cancelled() }} + if: matrix.sdk == 'stable' uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # pin@v1.1.1 with: token: ${{ secrets.CODECOV_TOKEN }} name: dart-tests-${{ runner.os }}-${{ matrix.sdk }} - flags: dart + flags: dart-${{ matrix.os }} verbose: true - name: Build example From cf5e4105247f3ec0b9d97744e6b833ef3cdc2592 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 4 Sep 2025 18:25:39 +0200 Subject: [PATCH 06/10] Update --- .github/actions/dart-test/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/dart-test/action.yml b/.github/actions/dart-test/action.yml index 6ea03cd6f4..18dcc206fe 100644 --- a/.github/actions/dart-test/action.yml +++ b/.github/actions/dart-test/action.yml @@ -38,7 +38,9 @@ runs: else $testCmd --reporter json > test-vm.jsonl fi - dart pub global run flutter_junitreport:tojunit --input test-vm.jsonl --output TEST-vm-junit.xml + if [ "${{ matrix.sdk }}" != "3.5" ]; then + dart pub global run flutter_junitreport:tojunit --input test-vm.jsonl --output TEST-vm-junit.xml + fi - name: Test dart2js if: ${{ inputs.web == 'true' }} From 0844edc6f3512ad14e760a25e72123b00f5418dc Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 4 Sep 2025 18:30:10 +0200 Subject: [PATCH 07/10] Update --- .github/actions/dart-test/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/dart-test/action.yml b/.github/actions/dart-test/action.yml index 18dcc206fe..4e4be7ede4 100644 --- a/.github/actions/dart-test/action.yml +++ b/.github/actions/dart-test/action.yml @@ -38,7 +38,7 @@ runs: else $testCmd --reporter json > test-vm.jsonl fi - if [ "${{ matrix.sdk }}" != "3.5" ]; then + if [[ "${{ matrix.sdk }}" != 3.5* ]]; then dart pub global run flutter_junitreport:tojunit --input test-vm.jsonl --output TEST-vm-junit.xml fi From aa318db4a11eb90534fa81743fe80e1ada428308 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Tue, 9 Sep 2025 13:55:43 +0200 Subject: [PATCH 08/10] Update --- .github/actions/dart-test/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/dart-test/action.yml b/.github/actions/dart-test/action.yml index 4e4be7ede4..6e96832f09 100644 --- a/.github/actions/dart-test/action.yml +++ b/.github/actions/dart-test/action.yml @@ -25,7 +25,9 @@ runs: - name: Install flutter_junitreport shell: bash run: | - dart pub global activate --source git https://github.com/waffiqaziz/flutter-junitreport.git --git-ref main + if [[ "${{ matrix.sdk }}" != 3.5* ]]; then + dart pub global activate --source git https://github.com/waffiqaziz/flutter-junitreport.git --git-ref main + fi - name: Test VM working-directory: ${{ inputs.directory }} From 001c18ab81a9ab0fbfed59b5a4bb2b2bfbf0c21b Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Tue, 9 Sep 2025 13:59:24 +0200 Subject: [PATCH 09/10] Update --- .github/workflows/logging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/logging.yml b/.github/workflows/logging.yml index 12da277245..de9a51bd43 100644 --- a/.github/workflows/logging.yml +++ b/.github/workflows/logging.yml @@ -50,8 +50,8 @@ jobs: uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # pin@v1.1.1 with: token: ${{ secrets.CODECOV_TOKEN }} - name: dart-tests-${{ runner.os }}-${{ matrix.sdk }} - flags: dart + name: logging-tests-${{ runner.os }}-${{ matrix.sdk }} + flags: logging-${{ matrix.os }} verbose: true analyze: From bb3b1b53d632ea53acf0798c8e51506ff3b18e87 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Tue, 9 Sep 2025 17:51:45 +0200 Subject: [PATCH 10/10] Updaet --- .github/workflows/dart.yml | 2 +- .github/workflows/logging.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index a67a97698b..5392f3504e 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -52,7 +52,7 @@ jobs: min-coverage: 85 - name: Upload test results to Codecov - if: matrix.sdk == 'stable' + if: ${{ !cancelled() && matrix.sdk == 'stable' }} uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # pin@v1.1.1 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/logging.yml b/.github/workflows/logging.yml index de9a51bd43..cb2e245fd1 100644 --- a/.github/workflows/logging.yml +++ b/.github/workflows/logging.yml @@ -46,7 +46,7 @@ jobs: min-coverage: 90 - name: Upload test results to Codecov - if: ${{ !cancelled() }} + if: ${{ !cancelled() && matrix.sdk == 'stable' }} uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # pin@v1.1.1 with: token: ${{ secrets.CODECOV_TOKEN }}