Skip to content

Commit 139d3b2

Browse files
committed
Add analysis action
1 parent bf49331 commit 139d3b2

File tree

2 files changed

+138
-60
lines changed

2 files changed

+138
-60
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Static Analysis
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
static-analysis:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: subosito/flutter-action@v2
13+
- name: Pub get
14+
run: flutter pub get
15+
- name: Format
16+
run: flutter format . --set-exit-if-changed
17+
- name: Analyze
18+
run: flutter analyze
19+
- name: Embedme
20+
run: |
21+
npm install embedme
22+
npx embedme README.md --verify
23+
# - name: Build runner
24+
# run: |
25+
# flutter pub run build_runner build --delete-conflicting-outputs
26+
# git diff --exit-code
27+
- name: Pana
28+
run: |
29+
flutter pub global activate pana
30+
pana --no-warning --exit-code-threshold 0

0 commit comments

Comments
 (0)