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): 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
94 lines
2.6 KiB
YAML
94 lines
2.6 KiB
YAML
# Generated by shorebird_ci --style static. Safe to edit.
|
|
# Run `shorebird_ci verify` to check for dep graph drift.
|
|
name: Shorebird CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
changes:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
shorebird_code_push: ${{ steps.filter.outputs.shorebird_code_push }}
|
|
shorebird_code_push_example: ${{ steps.filter.outputs.shorebird_code_push_example }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
# Full history so dorny/paths-filter can diff on push events.
|
|
fetch-depth: 0
|
|
- uses: dart-lang/setup-dart@v1
|
|
- run: dart pub global activate shorebird_ci
|
|
- name: Verify CI coverage
|
|
run: shorebird_ci verify
|
|
- uses: dorny/paths-filter@v4
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
shorebird_code_push:
|
|
- shorebird_code_push/**
|
|
shorebird_code_push_example:
|
|
- shorebird_code_push/**
|
|
- shorebird_code_push/example/**
|
|
|
|
shorebird_code_push:
|
|
needs: changes
|
|
if: needs.changes.outputs.shorebird_code_push == 'true'
|
|
uses: ./.github/workflows/_shorebird_ci_flutter.yaml
|
|
with:
|
|
package_name: shorebird_code_push
|
|
package_path: shorebird_code_push
|
|
has_bloc_lint: false
|
|
has_unit_tests: true
|
|
subpackages: "example"
|
|
flutter_version: ""
|
|
has_integration_tests: false
|
|
|
|
shorebird_code_push_example:
|
|
needs: changes
|
|
if: needs.changes.outputs.shorebird_code_push_example == 'true'
|
|
uses: ./.github/workflows/_shorebird_ci_flutter.yaml
|
|
with:
|
|
package_name: shorebird_code_push_example
|
|
package_path: shorebird_code_push/example
|
|
has_bloc_lint: false
|
|
has_unit_tests: false
|
|
subpackages: ""
|
|
flutter_version: ""
|
|
has_integration_tests: false
|
|
|
|
cspell:
|
|
name: CSpell
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
- uses: streetsidesoftware/cspell-action@v8
|
|
with:
|
|
incremental_files_only: false
|
|
config: cspell.config.yaml
|
|
|
|
required:
|
|
name: required
|
|
if: ${{ always() }}
|
|
needs:
|
|
- changes
|
|
- shorebird_code_push
|
|
- shorebird_code_push_example
|
|
- cspell
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check required jobs
|
|
run: |
|
|
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
|
|
echo "One or more required jobs failed or were cancelled."
|
|
exit 1
|
|
fi
|
|
echo "All required jobs passed (or were skipped because nothing changed)."
|
|
|