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