Skip to content

Fix WASM casting bug #105

Fix WASM casting bug

Fix WASM casting bug #105

Workflow file for this run

name: checks
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- '.github/workflows/checks.yml'
- '**/lib/**'
- '**/android/**'
- '**/ios/**'
- '**/web/**'
- '**/macos/**'
- '**/windows/**'
- '**/pubspec.yaml'
- '**/test/**'
- '**/test_driver/**'
- '**/assets/**'
- '**/integration_test/**'
jobs:
analyze:
timeout-minutes: 11
runs-on: ubuntu-latest
name: ${{ matrix.package }} analysis on ${{ matrix.channel }}
strategy:
matrix:
channel:
- 'stable'
- 'beta'
- 'master'
package:
- 'math_keyboard'
- 'math_keyboard_demo'
fail-fast: false
steps:
- uses: actions/[email protected]
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.channel }}
- name: pub get
run: flutter pub get
working-directory: ${{ matrix.package }}
- name: dart format
working-directory: ${{ matrix.package }}
run: dart format . --fix --set-exit-if-changed
- run: flutter analyze
working-directory: ${{ matrix.package }}
test:
timeout-minutes: 16
runs-on: macos-latest
name: ${{ matrix.package }} testing on ${{ matrix.channel }}
strategy:
matrix:
channel:
- 'stable'
- 'beta'
- 'master'
package:
- 'math_keyboard'
fail-fast: false
steps:
- uses: actions/[email protected]
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.channel }}
- run: flutter pub get
working-directory: ${{ matrix.package }}
- name: Run unit tests
if: ${{ matrix.channel == 'master' || matrix.channel == 'beta' }}
run: flutter test
working-directory: ${{ matrix.package }}
- name: Run unit tests with coverage
if: ${{ matrix.channel == 'stable' }}
run: flutter test --coverage
working-directory: ${{ matrix.package }}
- name: Upload coverage to Codecov
if: ${{ matrix.channel == 'stable' }}
uses: codecov/codecov-action@v3
with:
files: ${{ matrix.package }}/coverage/lcov.info
flags: ${{ matrix.package }}