diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml new file mode 100644 index 0000000..28bcdb2 --- /dev/null +++ b/.github/workflows/flutter.yml @@ -0,0 +1,39 @@ +name: Password manager + +on: + push: + branches: + - main + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '2.x' + + - name: Get dependencies + run: flutter pub get + + - name: Run tests + run: flutter test + + - name: Build APK + run: flutter build apk + + deploy: + runs-on: ubuntu-latest + needs: build + steps: + - name: Upload APK to artifacts + uses: actions/upload-artifact@v2 + with: + name: app + path: build/app/outputs/flutter-apk/app-release.apk