Run sdk tests #1345
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: Run sdk tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: 0 0,12 * * * | |
concurrency: | |
group: tests | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Chekout code | |
uses: actions/checkout@v4 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@v1 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Check for formatting issues (run "flutter format . ") | |
run: dart format --set-exit-if-changed . | |
- name: Analyze project | |
run: dart analyze | |
- name: Run tests | |
run: dart test test/ --coverage=./.cov | |
- name: Collect coverage | |
run: dart pub run coverage:format_coverage --lcov --in ./.cov --out coverage.lcov | |
- name: Upload code coverage to codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.lcov | |
fail_ci_if_error: false | |
verbose: true |