-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 842 Bytes
/
Copy pathmaster.yml
File metadata and controls
32 lines (28 loc) · 842 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
name: CI for master branch
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
name: Checkout to stable
with:
channel: 'stable' # or: 'dev' or 'beta'
- name: Install dependencies
run: flutter pub get
- name: Run tests
run: flutter pub run test
- name: Flutter test coverage
run: flutter test --coverage
- name: Remove some unnecessary files from coverage
run: flutter pub run remove_from_coverage -f coverage/lcov.info -r 'swagger_models' -r 'extensions'
- uses: codecov/codecov-action@v1.0.2
with:
token: ffe96e52-2ac6-46e7-879b-1fea65d896a3
file: ./coverage/lcov.info