feat(tendlc)!: command-tree cutover and number reads (PR 5 of 5) #85
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] | |
| # Also run on PRs into long-lived feature branches, not just main. Stacked | |
| # PRs (a chain like feat/a <- feat/b <- feat/c) otherwise get no test, lint, | |
| # or security run at all until the parent merges and the child is retargeted | |
| # — so the branches carrying the most work are the ones never gated. | |
| pull_request: | |
| branches: [main, 'feat/**'] | |
| jobs: | |
| # Doc/flag correctness is enforced as a hard gate by cmd/doccontract_test.go, | |
| # which runs as part of `go test ./...` below. | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build | |
| run: go build -o band ./cmd/band | |
| - name: Test | |
| run: go test ./... -v | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v7 | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install govulncheck | |
| run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
| - name: Run govulncheck | |
| run: govulncheck ./... |