feat(claude): plan-mode architect-consultation soft reminder (#385) #1288
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] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build | |
| run: go build ./... | |
| - name: Test | |
| run: go test -race -vet=off ./... | |
| - name: Vet | |
| run: go vet ./... || echo "::warning::go vet found issues (non-blocking)" | |
| doc-examples: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'workflow_dispatch' | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Check doc example markers | |
| run: make check-doc-examples | |
| - name: Install trivy | |
| run: | | |
| curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/75c4dc0f45c5d7ffd05ae26df1e0c666787bdf2a/contrib/install.sh \ | |
| | sh -s -- -b /usr/local/bin v0.69.3 | |
| - name: Update doc examples | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| go build -o uzomuzo ./cmd/uzomuzo | |
| go run ./scripts/update-doc-examples --skip-build | |
| - name: Create PR with updated doc examples | |
| env: | |
| # PAT required — GITHUB_TOKEN push does not trigger CI on the new branch. | |
| GH_TOKEN: ${{ secrets.GH_ACTIONS_TOKEN }} | |
| run: | | |
| git diff --quiet README.md docs/usage.md docs/assets/juice-shop-eol-result.txt && echo "No changes" && exit 0 | |
| BRANCH="docs/update-examples-$(date +%Y%m%d-%H%M%S)" | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" | |
| git checkout -b "$BRANCH" | |
| git add README.md docs/usage.md docs/assets/juice-shop-eol-result.txt | |
| git commit -m "docs: update output examples" | |
| git push -u origin "$BRANCH" | |
| gh pr create \ | |
| --title "docs: refresh output examples" \ | |
| --body "Automated refresh of documentation output examples via \`workflow_dispatch\` (including juice-shop SBOM scan)." \ | |
| --base main | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: go.mod | |
| - uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 |