Skip to content

Commit

Permalink
add test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
dukex committed Jun 22, 2024
1 parent df2d8e0 commit 8295480
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,38 @@ name: Dart

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
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: subosito/flutter-action@v2
- uses: flutter-actions/setup-flutter@v3
with:
channel: 'stable'
channel: "stable"
version: ${{ matrix.release.flutter }}

- run: flutter --version

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: the better router is a powerful, but for humans, flutter router.
version: 2.1.0
repository: https://github.com/dukex/better_router
environment:
sdk: '>=2.17.5 <3.0.0'
sdk: '>=2.17.5 <4.0.0'
dependencies:
flutter:
sdk: flutter
Expand Down

0 comments on commit 8295480

Please sign in to comment.