Skip to content

Tests

Tests #516

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
paths-ignore: [ '**.md' ]
pull_request:
branches: [ master ]
paths-ignore: [ '**.md' ]
schedule:
# Runs at 02:00 UTC on the 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29 and 31th of every month.
- cron: "0 2 */2 * *"
jobs:
test-stable-beta:
runs-on: ubuntu-latest
strategy:
matrix:
channel: [ 'stable', 'beta' ]
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.6.1
with:
channel: ${{ matrix.channel }}
- name: Doctor
run: flutter doctor
- name: Install dependencies
run: flutter packages get
- name: Format
run: flutter format lib test example --set-exit-if-changed
- name: Analyze
run: flutter analyze lib test example
- name: Run tests
run: flutter test --coverage --coverage-path=lcov.info
- uses: codecov/codecov-action@v3.1.0