Skip to content

Tests

Tests #345

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:
build:
runs-on: ubuntu-latest
strategy:
matrix:
channel: [ 'stable', 'beta' ]
steps:
- uses: actions/checkout@v3
- uses: subosito/[email protected]
with:
channel: ${{ matrix.channel }}
- name: Doctor
run: flutter doctor
- name: Setup libsqlite3 and libsqlite3-dev
run: sudo apt-get -y install libsqlite3-0 libsqlite3-dev
- 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/[email protected]