-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 825 Bytes
/
ci.yml
File metadata and controls
41 lines (36 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
branches: [main, develop]
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: stable
- run: dart pub get
- run: dart format --set-exit-if-changed .
- run: dart analyze --fatal-infos
test:
name: Test (Dart ${{ matrix.sdk }})
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [stable, "3.10.7"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- run: dart pub get
- run: dart test