chore: fix README #130
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: [ v2 ] | |
pull_request: | |
branches: [ v2 ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: google/dart:latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: pub get | |
- name: Run test with coverage | |
run: pub run test --coverage coverage | |
- name: Generate lcov.info for test coverage | |
run: pub global activate coverage && pub global run coverage:format_coverage -i coverage/test -o coverage/lcov.info --lcov | |
- name: upload reports to codecov | |
run: curl -s https://codecov.io/bash | bash | |
env: | |
CODECOV_TOKEN: '${{ secrets.CODECOV_TOKEN }}' |