forked from openfoodfacts/openfoodfacts-dart
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 918 Bytes
/
test-sdk.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
40
41
42
name: Run sdk tests
on:
push:
pull_request:
schedule:
- cron: 0 0,12 * * *
concurrency:
group: tests
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Check for formatting issues (run "flutter format . ")
run: dart format --set-exit-if-changed .
- name: Analyze project
run: dart analyze
- name: Run tests
run: dart test test/ --coverage=./.cov
- name: Collect coverage
run: dart pub run coverage:format_coverage --lcov --in ./.cov --out coverage.lcov
- name: Upload code coverage to codecov
uses: codecov/codecov-action@v4
with:
files: ./coverage.lcov
fail_ci_if_error: false
verbose: true