From 821b3ff859d5a95352cb80e5b02c03d78de931f9 Mon Sep 17 00:00:00 2001 From: Uttkarsh-raj <106571927+Uttkarsh-raj@users.noreply.github.com> Date: Wed, 22 May 2024 21:27:19 +0530 Subject: [PATCH] Create github actions Signed-off-by: Uttkarsh-raj <106571927+Uttkarsh-raj@users.noreply.github.com> --- .github/workflows/dart.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/dart.yml diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml new file mode 100644 index 0000000000..9f02e88138 --- /dev/null +++ b/.github/workflows/dart.yml @@ -0,0 +1,26 @@ +name: Build and Test Flutter App +on: [push, pull_request] + +jobs: + test: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v2 + with: + distribution: 'zulu' + java-version: '11' + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + architecture: x64 + - run: flutter pub get + - run: flutter analyze + - run: flutter build apk + + # Upload APK as a build artifact + - uses: actions/upload-artifact@v2 + with: + name: app-release-apk + path: build/app/outputs/flutter-apk/app-release.apk