|
50 | 50 | --target=integration_test/webcrypto_test.dart \
|
51 | 51 | -d chrome
|
52 | 52 | - run: xvfb-run flutter pub run test -p vm,chrome,firefox
|
| 53 | + # Test with coverage collection as a separate step. |
| 54 | + # This will run in debug mode, so we test both with and without coverage. |
| 55 | + - run: xvfb-run flutter pub run test -p vm,chrome,firefox --coverage ./coverage |
| 56 | + # Report collected coverage |
| 57 | + - name: Convert coverage to lcov |
| 58 | + run: dart run coverage:format_coverage -i ./coverage -o ./coverage/lcov.info --lcov --report-on lib/ |
| 59 | + - uses: coverallsapp/github-action@v2 |
| 60 | + with: |
| 61 | + flag-name: linux |
| 62 | + parallel: true |
53 | 63 | macos-14:
|
54 | 64 | name: webcrypto on macOS 14 desktop / Chrome
|
55 | 65 | runs-on: macos-14 # Test with xcode 15
|
@@ -141,6 +151,16 @@ jobs:
|
141 | 151 | --target=integration_test/webcrypto_test.dart \
|
142 | 152 | -d chrome
|
143 | 153 | - run: flutter pub run test -p vm,chrome,firefox
|
| 154 | + # Test with coverage collection as a separate step. |
| 155 | + # This will run in debug mode, so we test both with and without coverage. |
| 156 | + - run: xvfb-run flutter pub run test -p vm,chrome,firefox --coverage ./coverage |
| 157 | + # Report collected coverage |
| 158 | + - name: Convert coverage to lcov |
| 159 | + run: dart run coverage:format_coverage -i ./coverage -o ./coverage/lcov.info --lcov --report-on lib/ |
| 160 | + - uses: coverallsapp/github-action@v2 |
| 161 | + with: |
| 162 | + flag-name: windows |
| 163 | + parallel: true |
144 | 164 | ios:
|
145 | 165 | name: webcrypto on iOS emulator (iPhone)
|
146 | 166 | runs-on: macos-14
|
@@ -187,3 +207,13 @@ jobs:
|
187 | 207 | api-level: 28
|
188 | 208 | working-directory: ./example
|
189 | 209 | script: flutter test integration_test/webcrypto_test.dart -d android
|
| 210 | + coverage: |
| 211 | + name: Report to coveralls |
| 212 | + runs-on: ubuntu-latest |
| 213 | + needs: |
| 214 | + - linux |
| 215 | + - windows |
| 216 | + steps: |
| 217 | + - uses: coverallsapp/github-action@v2 |
| 218 | + with: |
| 219 | + parallel-finished: true |
0 commit comments