-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 876 Bytes
/
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
name: Dart
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1.6.5
- id: install
run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze --fatal-infos .
if: always() && steps.install.outcome == 'success'
- run: dart run ac_code_metrics:metrics analyze .
if: always() && steps.install.outcome == 'success'
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1.6.5
- id: install
run: dart pub get
- run: dart test
if: always() && steps.install.outcome == 'success'