Simplify result #14
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: Dart CI | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
upload-to-pubdev: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/[email protected] | |
with: | |
sdk: 2.17.5 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Analyze project source | |
run: dart analyze | |
- name: Install coverage | |
run: dart pub global activate coverage | |
- name: Run tests with coverage | |
run: dart pub global run coverage:test_with_coverage | |
- name: Report code coverage | |
uses: zgosalvez/github-actions-report-lcov@v2 | |
with: | |
coverage-files: coverage/lcov.info | |
minimum-coverage: 100 | |
artifact-name: code-coverage-report | |
github-token: ${{ secrets.GIT_TOKEN }} |