Skip to content

Test

Test #40

Workflow file for this run

name: Test
on: push
# push:
# branches: [main]
# pull_request:
# branches: [main]
jobs:
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Test latest stable
sdk: [stable]
steps:
- uses: dart-lang/[email protected]
- uses: actions/checkout@v2
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [stable]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
#- name: Run Chrome tests
# run: dart test --platform chrome
# if: always() && steps.install.outcome == 'success'