Skip to content

Format, Analyze and Test #149

Format, Analyze and Test

Format, Analyze and Test #149

Workflow file for this run

name: Format, Analyze and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
# runs the CI weekly
- cron: "0 0 * * 0"
jobs:
default_run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter pub get
- run: dart format --set-exit-if-changed -l 120 lib -l 120 example
- run: flutter analyze lib example
- run: flutter test --no-pub --coverage
- name: Upload coverage to codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true