-
-
Notifications
You must be signed in to change notification settings - Fork 14
58 lines (47 loc) · 1.06 KB
/
dart.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Dart CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dartversion: [
"google/dart:2.12",
"dart:3.0",
"dart:stable"
]
container:
image: ${{ matrix.dartversion }}
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: dart pub get || pub get
- name: Run tests
run: dart pub run test || pub run test
formatting:
runs-on: ubuntu-latest
container:
image: dart:3.5
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: dart pub get
- name: check formatting
run: dart format --fix --set-exit-if-changed .
lint:
runs-on: ubuntu-latest
container:
image: dart:3.5
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: dart pub get
- name: lint
run: dart analyze --fatal-infos
- name: docs
run: dart doc .
- name: Verify package completeness
run: dart pub publish -n