Add As pharaoh middleware section #30
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: On Push | |
on: [push] | |
jobs: | |
check_pana_score: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1 | |
with: | |
min_score: 130 | |
build: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 | |
with: | |
dart_sdk: "stable" | |
platform: "vm" | |
min_coverage: 100 | |
coverage: | |
runs-on: ubuntu-latest | |
container: | |
image: dart:latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install coverage | |
run: dart pub global activate coverage 1.2.0 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Run tests with coverage | |
run: dart run test --coverage="coverage" | |
- name: Convert coverage to ICOV | |
run: dart run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --report-on=lib | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: coverage.lcov | |