-
Notifications
You must be signed in to change notification settings - Fork 17
68 lines (56 loc) · 1.87 KB
/
very_good_dart_cli.yaml
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
58
59
60
61
62
63
64
65
66
67
68
name: very_good_dart_cli
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
paths:
- .github/workflows/very_good_dart_cli.yaml
- "very_good_dart_cli/**"
branches:
- main
pull_request:
paths:
- .github/workflows/very_good_dart_cli.yaml
- "very_good_dart_cli/**"
branches:
- main
jobs:
brick:
runs-on: ubuntu-latest
strategy:
matrix:
dart-version:
# The minimum Dart SDK version supported by the package,
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
- "3.6.0"
- "stable"
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.dart-version }}
- name: 🧱 Mason Make
run: |
dart pub global activate mason_cli
mason get
mason make very_good_dart_cli -c very_good_dart_cli/config.json -o output --on-conflict overwrite
- name: 📦 Install Dependencies
run: dart pub get --directory output/test_cli
- name: ✨ Check Formatting
run: dart format --set-exit-if-changed output/test_cli
- name: 🕵️ Analyze
run: dart analyze --fatal-infos --fatal-warnings output/test_cli
- name: 🧪 Run Tests
run: |
dart pub global activate coverage 1.2.0
cd output/test_cli
dart test -j 4 --coverage=coverage
dart pub global run coverage:format_coverage --lcov --check-ignore --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on="lib"
cd ../../
- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v3
with:
path: output/test_cli/coverage/lcov.info