-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (43 loc) · 1006 Bytes
/
code-quality.yml
File metadata and controls
46 lines (43 loc) · 1006 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
42
43
44
45
46
name: Code Quality
on:
pull_request:
push:
branches:
- main
jobs:
analyze:
runs-on: ubuntu-latest
strategy:
matrix:
sdk: ['stable', '3.8.3']
steps:
- uses: actions/checkout@v2
- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install DPK
run: dart pub global activate dpk
- name: Run dpk get
run: dpk get
- name: Run code generation on example app
run: dpk run example:build
- name: Analyze
run: dpk run analyze
format:
runs-on: ubuntu-latest
strategy:
matrix:
sdk: ['stable', '3.8.3']
steps:
- uses: actions/checkout@v2
- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install DPK
run: dart pub global activate dpk
- name: Run dpk get
run: dpk get
- name: Format
run: dpk run format