Files
shorebird-updater/.github/workflows/_shorebird_ci_flutter.yaml
T
nickshorebird a591b7f6b9
ci / ✅ Semantic Pull Request (push) Has been cancelled
ci / 🔤 Check Spelling (push) Has been cancelled
ci / 👀 Detect Changes (push) Has been cancelled
Shorebird CI / changes (push) Has been cancelled
Shorebird CI / CSpell (push) Has been cancelled
ci / 🦀 Build ${{ matrix.crate }} (${{ matrix.os }}) (push) Has been cancelled
ci / 🎯 Build ${{ matrix.package }} (push) Has been cancelled
ci / ci (push) Has been cancelled
Shorebird CI / shorebird_code_push (push) Has been cancelled
Shorebird CI / shorebird_code_push_example (push) Has been cancelled
Shorebird CI / required (push) Has been cancelled
feat(ci): adopt shorebird_ci workflow w/ required aggregator (#359)
* feat(ci): add shorebird_ci-generated workflow w/ required aggregator

Generated w/ `shorebird_ci generate --style static --required`. Covers
the `shorebird_code_push` Dart package; Rust crates remain on main.yaml.

* fix(ci): add dorny, felangel, subpackages to cspell dictionary
2026-05-27 09:29:00 -04:00

75 lines
2.2 KiB
YAML

# Generated by shorebird_ci --style static. Safe to edit.
# Reusable workflow: CI steps for a single Flutter package.
on:
workflow_call:
inputs:
package_name:
required: true
type: string
package_path:
required: true
type: string
flutter_version:
required: false
default: ""
type: string
has_bloc_lint:
required: false
default: false
type: boolean
has_integration_tests:
required: false
default: false
type: boolean
has_unit_tests:
required: false
default: true
type: boolean
subpackages:
required: false
default: ""
type: string
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ inputs.flutter_version || '' }}
channel: ${{ inputs.flutter_version && '' || 'stable' }}
- name: Setup Bloc Tools
if: inputs.has_bloc_lint
uses: felangel/setup-bloc-tools@v0
- name: Install Dependencies
working-directory: ${{ inputs.package_path }}
run: |
flutter pub get --no-example
for sub in ${{ inputs.subpackages }}; do
flutter pub get --no-example -C $sub
done
- working-directory: ${{ inputs.package_path }}
run: dart format --set-exit-if-changed .
- working-directory: ${{ inputs.package_path }}
run: flutter analyze .
- name: Bloc Lint
if: inputs.has_bloc_lint
working-directory: ${{ inputs.package_path }}
run: bloc lint .
- if: inputs.has_unit_tests
working-directory: ${{ inputs.package_path }}
run: flutter test --coverage
- if: inputs.has_unit_tests
uses: codecov/codecov-action@v6
with:
flags: ${{ inputs.package_name }}
working-directory: ${{ inputs.package_path }}
- name: Integration Tests
if: inputs.has_integration_tests
working-directory: ${{ inputs.package_path }}
run: flutter test integration_test