Skip to content

Instantly share code, notes, and snippets.

@tianhaoz95
Created October 17, 2019 06:22
Show Gist options
  • Save tianhaoz95/686c388b389577aebaf6c04ae2e7f8bd to your computer and use it in GitHub Desktop.
Save tianhaoz95/686c388b389577aebaf6c04ae2e7f8bd to your computer and use it in GitHub Desktop.
Flutter checkin checks
name: Checkin checks
on:
push:
branches:
- "master"
- "dev/*"
paths:
- "iwfpapp/**"
- ".github/**"
pull_request:
branches:
- "master"
- "dev/*"
schedule:
- cron: 0 2 * * *
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.9.1+hotfix.2'
channel: 'stable'
- run: cd ./iwfpapp && flutter pub get
- run: cd ./iwfpapp && flutter analyze
- run: cd ./iwfpapp && flutter test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment