Skip to content

Merge pull request #135 from WednesdaySP/mode-change #126

Merge pull request #135 from WednesdaySP/mode-change

Merge pull request #135 from WednesdaySP/mode-change #126

Workflow file for this run

name: Flutter CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v2 # Updated to use version 2
with:
java-version: "17" # Updated to use Java 17
# Setup the flutter environment.
- uses: subosito/flutter-action@v1
with:
channel: "stable"
# Get flutter dependencies.
- run: flutter pub get
# Check for any formatting issues in the code but don't fail the build.
- run: dart run dart_style:format --dry-run .
continue-on-error: true
# Statically analyze the Dart code for any errors.
- run: flutter analyze .
# Build apk.
- run: flutter build apk
# Upload generated apk to the artifacts.
- uses: actions/upload-artifact@v3
with:
name: release-apk
path: build/app/outputs/apk/release/app-release.apk