urusai88 is testing out GitHub Actions π #12
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: Build | |
run-name: ${{ github.actor }} is testing out GitHub Actions π | |
on: | |
push: | |
branches: | |
- main | |
- coverage | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
- run: dart pub get | |
- run: dart test -j 1 --coverage .coverage --chain-stack-traces | |
- run: dart run coverage:format_coverage -l -i .coverage -o .coverage/coverage.lcov --report-on=lib --check-ignore | |
- name: Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: .coverage | |
files: coverage.lcov |