-
Notifications
You must be signed in to change notification settings - Fork 22
37 lines (31 loc) · 949 Bytes
/
dry_publish.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
name: Dry Publish
on:
push:
branches: main
pull_request:
branches: main
jobs:
dry-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: ./.github/actions/setup_flutter
- name: Install pana
run: dart pub global activate pana
- name: Run pana
id: analysis
run: |
pana --json . 2>&1 | grep -v '^{"logName"' > pana-report.json
JSON_OUTPUT=$(cat pana-report.json | jq -c .)
echo "::set-output name=json_output::$JSON_OUTPUT"
- uses: fujidaiti/dart-package-inspector@v2
with:
report: ${{ steps.analysis.outputs.json_output }}
min-convention-points: 30
min-platform-points: 20
min-analysis-points: 40
min-dependency-points: 20
supported-platforms: ios, android
- run: flutter pub publish --dry-run