-
Notifications
You must be signed in to change notification settings - Fork 22
40 lines (34 loc) · 1.01 KB
/
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
38
39
40
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
with:
target: package
- name: Install pana
run: dart pub global activate pana
- name: Run pana
id: analysis
run: |
pana --json package 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@v1
with:
report: ${{ steps.analysis.outputs.json_output }}
min-convention-points: 30
min-platform-points: 20
min-analysis-points: 50
min-dependency-points: 20
supported-platforms: ios, android
- run: flutter pub publish --dry-run
working-directory: package