-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (35 loc) · 1005 Bytes
/
static-analysis.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Static Analysis
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install FVM
run: |
brew tap leoafarias/fvm
brew install fvm
echo "$HOME/fvm/default/bin" >> $GITHUB_PATH
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
fvm install 3.10.0 --setup
fvm install stable --setup
fvm global stable
- name: Pub get
run: dart pub get
- name: Format
run: dart format . --set-exit-if-changed
- name: Analyze
run: dart analyze
- name: Test
run: dart test --timeout 120s --concurrency 1
- name: Pana
run: |
dart pub global activate pana
pana --no-warning --exit-code-threshold 0