-
Notifications
You must be signed in to change notification settings - Fork 146
33 lines (30 loc) · 790 Bytes
/
dart.yml
File metadata and controls
33 lines (30 loc) · 790 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
name: Dart Checks
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# Test with at least the declared minimum Dart version
sdk: ['3.5', stable]
steps:
- uses: actions/checkout@v6
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: Dart Analyzer
run: dart analyze
- name: Check Dart Format
if: ${{ matrix.sdk == 'stable' }}
run: dart format --set-exit-if-changed -onone .
- name: Unit tests
run: dart test
- name: Check if Publishable
run: dart pub publish --dry-run