-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 950 Bytes
/
ci.yaml
File metadata and controls
45 lines (35 loc) · 950 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
41
42
43
44
45
name: CI pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-tests-and-upload-coverage-report:
name: Test package
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: true
flutter-version: 3.29.3
channel: 'stable'
- name: Install dependencies
run: dart pub get
- run: dart pub global activate coverage
name: Activate dart coverage
- name: Format code
run: dart format . --set-exit-if-changed
- name: Lint analysis
run: dart analyze
- name: Run tests
run: dart pub global run coverage:test_with_coverage
- name: Upload coverage to codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}