chore(deps): bump astro from 6.1.9 to 6.2.2 in /website #268
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main] | |
| merge_group: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| # ---- Lint & Vet ---- | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26" | |
| cache: true | |
| - name: Go vet | |
| run: go vet ./... | |
| - name: Go vet (probe-convert) | |
| run: cd tools/probe-convert && go vet ./... | |
| - name: Install staticcheck | |
| run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
| - name: Staticcheck | |
| run: staticcheck ./... | |
| - name: Staticcheck (probe-convert) | |
| run: cd tools/probe-convert && staticcheck ./... | |
| # ---- Unit tests ---- | |
| unit-tests: | |
| name: Go unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26" | |
| cache: true | |
| - name: Run tests | |
| run: go test -v -race -coverprofile=coverage.out ./... | |
| - name: Upload coverage | |
| if: always() | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| file: coverage.out | |
| fail_ci_if_error: false | |
| # ---- Build verification ---- | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26" | |
| cache: true | |
| - name: Build probe CLI | |
| run: make build | |
| - name: Build probe-convert | |
| run: make build-convert | |
| - name: Verify binaries exist | |
| run: | | |
| test -x bin/probe | |
| test -x bin/probe-convert | |
| - name: Upload probe binary | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: probe-linux-amd64 | |
| path: bin/probe | |
| # ---- Dart agent validation ---- | |
| dart-agent: | |
| name: Dart agent | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # needed for CHANGELOG diff check | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: "3.29.x" | |
| channel: stable | |
| cache: true | |
| - name: Install dependencies | |
| run: cd probe_agent && flutter pub get | |
| - name: Analyze | |
| run: cd probe_agent && dart analyze lib/ --fatal-infos | |
| - name: Test | |
| run: cd probe_agent && flutter test | |
| - name: pub.dev dry run | |
| run: cd probe_agent && dart pub publish --dry-run | |
| - name: Enforce CHANGELOG entry when lib/ changes | |
| if: github.event_name == 'pull_request' | |
| run: | | |
| BASE=${{ github.event.pull_request.base.sha }} | |
| HEAD=${{ github.event.pull_request.head.sha }} | |
| LIB_CHANGED=$(git diff --name-only "$BASE" "$HEAD" -- probe_agent/lib/ | wc -l | tr -d ' ') | |
| CHANGELOG_CHANGED=$(git diff --name-only "$BASE" "$HEAD" -- probe_agent/CHANGELOG.md | wc -l | tr -d ' ') | |
| if [ "$LIB_CHANGED" -gt 0 ] && [ "$CHANGELOG_CHANGED" -eq 0 ]; then | |
| echo "ERROR: probe_agent/lib/ changed but probe_agent/CHANGELOG.md was not updated." | |
| echo "Add a changelog entry under the [Unreleased] section before merging." | |
| exit 1 | |
| fi | |
| # ---- probe-convert tests ---- | |
| convert-tests: | |
| name: probe-convert tests | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26" | |
| cache: true | |
| - name: Build probe CLI | |
| run: make build | |
| - name: Build probe-convert | |
| run: make build-convert | |
| - name: Run unit tests | |
| run: make test-convert | |
| - name: Run integration tests (golden + lint + verify) | |
| run: make test-convert-integration |