-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (33 loc) · 995 Bytes
/
tests.yaml
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
name: Tests & Coverage
on:
push:
branches:
- main
paths:
- '**.dart'
tags-ignore:
- '**'
pull_request:
workflow_dispatch:
jobs:
tests_and_coverage:
runs-on: macos-latest
steps:
- name: Tap Google's Dart formula repository
run: brew tap dart-lang/dart
- name: Install the Dart formula
run: brew install dart
- uses: actions/checkout@v2
- name: Install dependencies
run: dart pub get
- name: Run tests
run: dart pub run test
- name: Install coverage package
run: dart pub global activate coverage
- name: Generate coverage report
run: dart pub global run coverage:test_with_coverage
- name: Generate lcov file
run: dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --lcov -i coverage/coverage.json -o coverage/lcov.info
- uses: codecov/codecov-action@v3
with:
file: coverage/lcov.info