-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.05 KB
/
test.yml
File metadata and controls
45 lines (37 loc) · 1.05 KB
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
# dart_frog_openapi (Adam) Test & Coverage CI
name: Tests
on:
push:
branches: [dev]
pull_request:
branches: [dev]
jobs:
analyze:
name: Analyze & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dart-lang/setup-dart@v1
with:
sdk: stable
- name: Install dependencies
run: dart pub get
- name: Verify formatting
run: dart format . -l 120 --output=none --set-exit-if-changed
- name: Analyze
run: dart analyze --fatal-infos
- name: Run tests with coverage
run: |
dart pub global activate coverage
dart pub global run coverage:test_with_coverage \
--scope-output=dart_frog_openapi \
-- test/
continue-on-error: false
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: coverage/lcov.info
fail_ci_if_error: false
verbose: true
slug: nexlabstudio/adam
token: ${{ secrets.CODECOV_TOKEN }}