Add github workflows (#30)

This commit is contained in:
Hidenori Matsubayashi
2021-07-29 14:16:59 +09:00
committed by GitHub
parent ca037ac2d7
commit 3bb018d90f
3 changed files with 30 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Analysis
on:
push:
pull_request:
jobs:
analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fetch Flutter SDK
run: |
git clone --depth=1 https://github.com/flutter/flutter.git
cd flutter
git fetch --depth=1 https://github.com/flutter/flutter.git `cat ../bin/internal/flutter.version`
git checkout FETCH_HEAD
- name: Install pub dependencies
run: flutter/bin/flutter pub get
- name: Verify formatting
run: flutter/bin/dart format --output=none --set-exit-if-changed lib
- name: Analyze project source
run: flutter/bin/dart analyze --fatal-warnings lib