From 9ad4c42b1f45d4482e650d3f44cd4b3e7a9da134 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 08:13:16 +0000 Subject: [PATCH 1/2] Initial plan From 830a778e7714b6f8dd103ad5ddcecae80d99af3e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 08:19:41 +0000 Subject: [PATCH 2/2] ci: Add WASM to Flutter test matrix Co-authored-by: mtrezza <5673677+mtrezza@users.noreply.github.com> --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea6b7bf12..82cd1b2bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,6 +97,11 @@ jobs: - name: Flutter beta os: ubuntu-latest sdk: beta + # WASM support + - name: Flutter 3.38, Ubuntu, WASM + os: ubuntu-latest + sdk: 3.38.1 + wasm: true fail-fast: false name: Test ${{ matrix.name }} steps: @@ -125,10 +130,14 @@ jobs: - name: Publish dry run run: cd packages/flutter && dart pub publish --dry-run - name: Run tests + if: ${{ !matrix.wasm }} run: (cd packages/flutter && flutter test --coverage) + - name: Run tests (WASM) + if: ${{ matrix.wasm }} + run: (cd packages/flutter && flutter test --platform chrome --wasm) - name: Convert code coverage # Needs to be adapted to collect the coverage at all platforms if platform specific code is added. - if: ${{ always() && matrix.os == 'ubuntu-latest' }} + if: ${{ always() && matrix.os == 'ubuntu-latest' && !matrix.wasm }} working-directory: packages/flutter run: | escapedPath="$(echo `pwd` | sed 's/\//\\\//g')" @@ -136,7 +145,7 @@ jobs: - name: Upload code coverage uses: codecov/codecov-action@v5 # Needs to be adapted to collect the coverage at all platforms if platform specific code is added. - if: ${{ always() && matrix.os == 'ubuntu-latest' }} + if: ${{ always() && matrix.os == 'ubuntu-latest' && !matrix.wasm }} with: files: packages/flutter/coverage/lcov-full.info fail_ci_if_error: false