Chore/maintenance #1
This file contains hidden or 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 Tests | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Dart SDK | |
| uses: dart-lang/setup-dart@v1 | |
| with: | |
| dart-version: stable | |
| - name: Install dependencies | |
| run: dart pub get | |
| - name: Run tests | |
| run: dart test --coverage | |
| - name: Generate coverage report | |
| run: genhtml coverage/lcov.info -o coverage/html | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| file: ./coverage/lcov.info | |
| flags: unittests | |
| name: codecov-umbrella | |
| fail_ci_if_error: true |