Skip to content

add test matrix

add test matrix #21

Workflow file for this run

name: Dart
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
pubspec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: pubspec
name: Generate matrix from pubspec.yaml
uses: flutter-actions/pubspec-matrix-action@v1
with:
pubspec: "pubspec.yaml"
outputs:
matrix: ${{ steps.pubspec.outputs.matrix }}
build:
needs: [pubspec]
strategy:
matrix: ${{fromJson(needs.pubspec.outputs.matrix)}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: flutter-actions/setup-flutter@v3
with:
channel: "stable"
version: ${{ matrix.release.flutter }}
- run: flutter --version
- name: Install dependencies
run: flutter pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: dart analyze --fatal-infos
- name: Run tests
run: flutter test