Add GitHub actions CI

This commit is contained in:
Bart Ribbers 2023-01-24 10:08:59 +01:00
parent 291e6fc41e
commit 7257a3822c

27
.github/workflows/flutter.yaml vendored Normal file
View file

@ -0,0 +1,27 @@
name: CI
on:
push:
branches: [master, develop]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.gradle/wrapper
/opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Project preparation
run: flutter pub get
- name: Flutter format
run: flutter format -o none --set-exit-if-changed .
- name: Flutter analyze
run: flutter analyze