1.2.0 #66
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: build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install lcov | |
run: sudo apt-get install -y lcov | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
- name: Get dependencies | |
run: flutter pub get | |
- name: Static code analysis | |
run: flutter analyze --no-pub | |
- name: Check code formatting | |
run: dart format . --set-exit-if-changed | |
- name: Unit tests | |
run: make test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |