Skip to content

Run sdk tests

Run sdk tests #1315

Workflow file for this run

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