Add github actions (#28)

This commit is contained in:
Prerak Mann
2021-01-27 15:41:44 +05:30
committed by GitHub
parent 0797dedc35
commit 3f8bc282b0
2 changed files with 41 additions and 0 deletions

27
.github/workflows/flutter.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Flutter CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'beta'
# Get flutter dependencies.
- run: flutter packages get
# Check for any formatting issues in the code.
- run: flutter format --set-exit-if-changed .
# Statically analyze the Dart code for any errors.
- run: flutter analyze .