Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
debojyoti452 authored Apr 23, 2023
1 parent 7d69bb8 commit 4577a2c
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
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

0 comments on commit 4577a2c

Please sign in to comment.