Refactor: Replace Platform (dart:io) with TargetPlatform #386
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dry Publish | |
on: | |
push: | |
branches: main | |
pull_request: | |
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 |