Performs checks against Dart and Flutter code to ensure the package does not have any analysis issues, failed tests, or improperly formatted code (as defined by dart format
).
Name | Default | Description |
---|---|---|
channel |
stable |
Channel to pull for Dart / Flutter's SDK |
credentials |
n/a | Credentials JSON from pub |
name: Publish
on:
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
channel: ${{ inputs.channel }}
- name: Publish
uses: peiffer-innovations/[email protected]
with:
credentials: ${{ secrets.CREDENTIALS_JSON }}