From 7257a3822ce1afb0059ad10ea0b66d83526a2bdc Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Tue, 24 Jan 2023 10:08:59 +0100 Subject: [PATCH] Add GitHub actions CI --- .github/workflows/flutter.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/flutter.yaml diff --git a/.github/workflows/flutter.yaml b/.github/workflows/flutter.yaml new file mode 100644 index 0000000..cab75e5 --- /dev/null +++ b/.github/workflows/flutter.yaml @@ -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