-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d69bb8
commit 4577a2c
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# 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: Build Project | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
flavor: | ||
description: 'Are you sure to run?' | ||
required: false | ||
default: 'Run all' | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
- ED-* | ||
jobs: | ||
build: | ||
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: | ||
java-version: '12.x' | ||
distribution: 'zulu' | ||
cache: 'gradle' | ||
# Setup the flutter environment. | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: '3.3.10' | ||
cache: true | ||
# Get flutter dependencies. | ||
- run: flutter clean | ||
|
||
# Get flutter dependencies. | ||
- run: flutter pub get | ||
|
||
# Statically analyze the Dart code for any errors. | ||
- run: flutter analyze . | ||
|
||
# Run the tests. | ||
- run: flutter test |