-
Notifications
You must be signed in to change notification settings - Fork 13
33 lines (30 loc) · 962 Bytes
/
dart.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
#give the pipeline a name
name: Dart CI
#set conditions to trigger on
on:
push:
branches: [master]
pull_request:
branches: [master]
# define what happens when conditions are met
jobs:
build:
# use ubuntu's latest OS
runs-on: ubuntu-latest
# use the _/dart container for version 3+ (this makes `dart` available to use)
container:
image: dart:latest
# checkout the code, run pub get and finally run tests
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: dart pub get
- name: Run tests
run: pub run test --coverage="coverage"
- name: Convert coverage to ICOV
run: pub run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.packages --report-on=lib
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage.lcov