journal: Day 175 session entry #773
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: | |
| branches: [main] | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout iterate | |
| uses: actions/checkout@v4 | |
| with: | |
| path: iterate | |
| # The go.mod has: replace github.com/GrayCodeAI/iteragent => ../iteragent | |
| # Clone at specific tag v1.6.0 to match local replace | |
| - name: Checkout iteragent | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: GrayCodeAI/iteragent | |
| ref: v1.6.0 | |
| path: iteragent | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26' | |
| cache-dependency-path: iterate/go.sum | |
| - name: Build | |
| working-directory: iterate | |
| run: | | |
| go mod tidy | |
| go build ./... | |
| - name: Test | |
| working-directory: iterate | |
| run: go test -race -coverprofile=coverage.out -v ./... | |
| - name: Coverage summary | |
| working-directory: iterate | |
| run: go tool cover -func=coverage.out | tail -1 | |
| - name: Vet | |
| working-directory: iterate | |
| run: go vet ./... | |
| - name: Format check | |
| working-directory: iterate | |
| run: test -z "$(gofmt -l .)" || (echo "Files need gofmt:" && gofmt -l . && exit 1) |