Skip to content

Build

Build #1270

Workflow file for this run

name: Build
on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- master
paths-ignore:
- "**.md"
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"
jobs:
flutter:
runs-on: ubuntu-latest
strategy:
matrix:
channel:
- master
- dev
- beta
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
fetch-depth: 2
- uses: subosito/[email protected]
with:
channel: ${{ matrix.channel }}
- name: Add pub cache bin to PATH
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- name: Add pub cache to PATH
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV
- name: Install dependencies
run: flutter pub get
- run: dart format lib test --set-exit-if-changed
if: matrix.channel == 'master'
- run: flutter analyze --no-current-package
- run: flutter test --no-pub --coverage test/null_safe