-
Notifications
You must be signed in to change notification settings - Fork 30
41 lines (31 loc) · 1010 Bytes
/
spacex_api.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
name: spacex_api
on:
pull_request:
paths:
- "packages/spacex_api/**"
- ".github/workflows/spacex_api.yaml"
jobs:
build:
defaults:
run:
working-directory: packages/spacex_api
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dart
uses: dart-lang/setup-dart@v1
with:
sdk: 2.14.2
- name: Install Dependencies
run: pub get
- name: Format
run: dartfmt --dry-run --set-exit-if-changed lib test
- name: Analyze
run: dart analyze --fatal-infos --fatal-warnings .
- name: Run tests
run: dart test --coverage=coverage && pub run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.packages --report-on=lib
- name: Check Code Coverage
uses: VeryGoodOpenSource/[email protected]
with:
path: packages/spacex_api/coverage/lcov.info
exclude: "**/*.g.dart **/*.gen.dart"