-
-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (43 loc) · 1.01 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
name: Dart CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ["2.12", "2.13", "dev"]
container:
image: google/dart:${{ matrix.version }}
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: pub get --no-precompile
- name: Run tests
run: pub run test
formatting:
runs-on: ubuntu-latest
container:
image: google/dart:2.14
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: pub get --no-precompile
- name: check formatting
run: dart format --fix --set-exit-if-changed .
lint:
runs-on: ubuntu-latest
container:
image: google/dart:2.14
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: pub get --no-precompile
- name: lint
run: dart analyze --fatal-infos
- name: docs
run: dartdoc .
- name: Verify package completness
run: pub publish -n