-
Notifications
You must be signed in to change notification settings - Fork 24
40 lines (31 loc) · 830 Bytes
/
ci.yml
File metadata and controls
40 lines (31 loc) · 830 Bytes
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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.41.5'
channel: stable
- name: Install dependencies
run: flutter pub get
- name: Analyze
run: flutter analyze
- name: Test with coverage
run: flutter test --coverage
- name: Check coverage ≥ 80 %
uses: VeryGoodOpenSource/very_good_coverage@v3
with:
path: coverage/lcov.info
min_coverage: 80
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: coverage/lcov.info
if: always()