-
Notifications
You must be signed in to change notification settings - Fork 3
21 lines (20 loc) · 793 Bytes
/
ci.yaml
File metadata and controls
21 lines (20 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- run: sudo apt-get install lcov -y
- run: mkdir -p ./build/coverage
- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze
- run: dart pub global activate coverage
- run: dart test test/main.dart --coverage=./build/coverage
- run: dart pub global run coverage:format_coverage --lcov --check-ignore --in=./build/coverage --out=./build/lcov.info --packages=./.dart_tool/package_config.json --report-on=lib
- run: "sudo genhtml ./build/lcov.info --output=.build/coverage/html | grep 'lines.*: 100.0%'"