Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -125,18 +130,22 @@ 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')"
sed "s/^SF:lib/SF:$escapedPath\/lib/g" coverage/lcov.info > coverage/lcov-full.info
- 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
Expand Down
Loading