Skip to content

Merge pull request #277 from mdgspace/casper/snacks_image #507

Merge pull request #277 from mdgspace/casper/snacks_image

Merge pull request #277 from mdgspace/casper/snacks_image #507

Workflow file for this run

name: CI
on: [push]
jobs:
deploy:
# This job will run on ubuntu virtual machine
runs-on: ubuntu-latest
steps:
# Setup Java environment in order to build the Android app.
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17.x"
# Setup the flutter environment.
- uses: subosito/flutter-action@v2
with:
channel: "stable"
# Get flutter dependencies.
- run: flutter pub get
# Generate Freezed models
- run: dart run build_runner build -d
# Check for any formatting issues in the code.
- run: dart format --set-exit-if-changed .
# Statically analyze the Dart code for any errors.
- run: flutter analyze .
# Build apk.
- run: flutter build apk