-
Notifications
You must be signed in to change notification settings - Fork 5
25 lines (25 loc) · 875 Bytes
/
tests.yaml
File metadata and controls
25 lines (25 loc) · 875 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
name: tests
on: [push, workflow_dispatch]
jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/ndk
steps:
- uses: actions/checkout@v1
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart format --output=none .
- run: dart analyze --no-fatal-warnings
- run: dart test --coverage="coverage"
- run: dart test ./example
- run: dart pub global activate coverage
- run: $HOME/.pub-cache/bin/format_coverage --ignore-files **/*.g.dart --lcov --check-ignore --in=coverage --out=coverage.lcov --report-on=lib
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage.lcov
verbose: true # optional (default = false)