-
-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (41 loc) · 1.11 KB
/
sugar_unit_test.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
name: Sugar Unit Tests
on:
push:
paths:
- .github/workflows/sugar_unit_test.yaml
- sugar/lib/**
- sugar/test/**
- sugar/tool/**
- sugar/analysis_options.yaml
- sugar/dart_test.yaml
- sugar/dartdoc_options.yaml
- sugar/pubspec.yaml
pull_request:
paths:
- .github/workflows/sugar_unit_test.yaml
- sugar/lib/**
- sugar/test/**
- sugar/tool/**
- sugar/analysis_options.yaml
- sugar/dart_test.yaml
- sugar/dartdoc_options.yaml
- sugar/pubspec.yaml
jobs:
test:
name: Unit tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: sugar
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart analyze --fatal-warnings
- run: dart run coverage:test_with_coverage
- run: sudo apt-get update -y
- run: sudo apt-get install -y lcov
- run: lcov --remove ./coverage/lcov.info '**.g.dart' -o ./coverage/lcov.info
- uses: codecov/codecov-action@v4
with:
files: ./sugar/coverage/lcov.info