From 9b5b15a550e4c60db50fec17aabe9c47e3c4bed2 Mon Sep 17 00:00:00 2001 From: Tony Bark <35226681+tonytins@users.noreply.github.com> Date: Sat, 29 May 2021 12:13:44 -0400 Subject: [PATCH] Github CI --- .github/workflows/flutter.yml | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/workflows/flutter.yml diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml new file mode 100644 index 0000000..8c528b4 --- /dev/null +++ b/.github/workflows/flutter.yml @@ -0,0 +1,72 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Flutter + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +jobs: + linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v1 + with: + channel: "stable" + - run: flutter pub get + - run: flutter test + - run: flutter build linux + + android: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: "12.x" + - uses: subosito/flutter-action@v1 + with: + channel: "stable" + - run: flutter pub get + - run: flutter test + - run: flutter build apk + - run: flutter build appbundle + + macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v1 + with: + channel: "stable" + - run: flutter pub get + - run: flutter test + - run: flutter build macos --release --no-codesign + + ios: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v1 + with: + channel: "stable" + - run: flutter pub get + - run: flutter test + - run: flutter build ios --release --no-codesign + + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v1 + with: + channel: "stable" + - run: flutter pub get + - run: flutter test + - run: flutter build windows