Skip to content

chore(deps): bump dart-lang/setup-dart from 1.7.2 to 1.8.0 #290

chore(deps): bump dart-lang/setup-dart from 1.7.2 to 1.8.0

chore(deps): bump dart-lang/setup-dart from 1.7.2 to 1.8.0 #290

Workflow file for this run

name: test_optimizer_ci
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
paths:
- .github/workflows/test_optimizer.yaml
- "bricks/test_optimizer/**"
- "lib/src/cli/templates/test_optimizer_bundle.dart"
branches:
- main
pull_request:
paths:
- .github/workflows/test_optimizer.yaml
- "bricks/test_optimizer/**"
- "lib/src/cli/templates/test_optimizer_bundle.dart"
branches:
- main
jobs:
build_hooks:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
dart_sdk: "3.12.0"
working_directory: bricks/test_optimizer/hooks
verify_bundle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dart-lang/setup-dart@v1.8.0
with:
sdk: "3.12.0"
- name: Install mason
run: dart pub global activate mason_cli
- name: Run bundle generate
run: tool/generate_test_optimizer_bundle.sh
- name: Verify bundle is up to date
run: |
# Check for modifications to the bundle file
if ! git diff --exit-code --quiet lib/src/cli/templates/test_optimizer_bundle.dart; then
echo "::error::test_optimizer_bundle.dart has uncommitted changes after regeneration"
echo "::error::The bundle is out of sync with the brick source in bricks/test_optimizer/"
echo "::error::Please run 'tool/generate_test_optimizer_bundle.sh' and commit the updated bundle"
echo ""
echo "Changes detected:"
git diff lib/src/cli/templates/test_optimizer_bundle.dart
exit 1
fi
# Check for untracked or deleted bundle files
if git status --porcelain lib/src/cli/templates/ | grep -q '^[?!].*test_optimizer_bundle.dart'; then
echo "::error::test_optimizer_bundle.dart has untracked or deleted changes"
echo "::error::The bundle file may be missing or newly created"
echo "::error::Please run 'tool/generate_test_optimizer_bundle.sh' and commit the updated bundle"
echo ""
git status lib/src/cli/templates/
exit 1
fi
echo "✅ Bundle verification passed - bundle is up to date with brick source"