-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 957 Bytes
/
testing.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
34
on:
push:
paths-ignore:
- '*.md'
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
permissions:
pull-requests: read
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
name: Build
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Environment
uses: ./.github/actions/setup_build
- name: Pre Build Tasks
uses: ./.github/actions/pre_build
- name: Run Tests
run: dart pub run test --coverage="coverage"
- name: format coverage
run: $HOME/.pub-cache/bin/format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.packages --report-on=lib
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.lcov