59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: shorebird_cli
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/shorebird_cli.yaml"
|
|
- "packages/shorebird_cli/lib/**"
|
|
- "packages/shorebird_cli/test/**"
|
|
- "packages/shorebird_cli/pubspec.yaml"
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- ".github/workflows/shorebird_cli.yaml"
|
|
- "packages/shorebird_cli/lib/**"
|
|
- "packages/shorebird_cli/test/**"
|
|
- "packages/shorebird_cli/pubspec.yaml"
|
|
|
|
jobs:
|
|
semantic-pull-request:
|
|
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1
|
|
|
|
build:
|
|
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
|
|
with:
|
|
working_directory: packages/shorebird_cli
|
|
|
|
pana:
|
|
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1
|
|
with:
|
|
working_directory: packages/shorebird_cli
|
|
|
|
verify-version:
|
|
defaults:
|
|
run:
|
|
working-directory: packages/shorebird_cli
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: 📚 Git Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: 🎯 Setup Dart
|
|
uses: dart-lang/setup-dart@v1
|
|
with:
|
|
sdk: "stable"
|
|
|
|
- name: 📦 Install Dependencies
|
|
run: |
|
|
dart pub get
|
|
|
|
- name: 🔎 Verify version
|
|
run: dart run test --run-skipped -t version-verify
|