Skip to content

Commit ed3d570

Browse files
committed
chore: update CI workflows to Go 1.26 and codify AI agent branch rules
Signed-off-by: James Nesbitt <jnesbitt@mirantis.com>
1 parent 51b60e4 commit ed3d570

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- name: Set up Go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: "1.25"
24+
go-version: "1.26"
25+
cache: true
2526

2627
- name: Build binaries
2728
run: |
@@ -55,7 +56,8 @@ jobs:
5556
- name: Set up Go
5657
uses: actions/setup-go@v5
5758
with:
58-
go-version: "1.22"
59+
go-version: "1.26"
60+
cache: true
5961

6062
- name: Run unit tests
6163
run: go test -v ./...

.github/workflows/pr.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
- name: Set up Go
3333
uses: actions/setup-go@v5
3434
with:
35-
go-version: "1.25"
35+
go-version: "1.26"
36+
cache: true
3637

3738
- name: Run golangci-lint
3839
run: make lint
@@ -47,7 +48,8 @@ jobs:
4748
- name: Set up Go
4849
uses: actions/setup-go@v5
4950
with:
50-
go-version: "1.25"
51+
go-version: "1.26"
52+
cache: true
5153

5254
- name: Run unit tests
5355
run: make unit-test
@@ -62,7 +64,8 @@ jobs:
6264
- name: Set up Go
6365
uses: actions/setup-go@v5
6466
with:
65-
go-version: "1.25"
67+
go-version: "1.26"
68+
cache: true
6669

6770
- name: Run integration tests
6871
run: make integration-test
@@ -79,7 +82,8 @@ jobs:
7982
- name: Set up Go
8083
uses: actions/setup-go@v5
8184
with:
82-
go-version: "1.25"
85+
go-version: "1.26"
86+
cache: true
8387

8488
- name: Install govulncheck
8589
run: go install golang.org/x/vuln/cmd/govulncheck@latest

AI_AGENTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This document defines guidelines for AI agents working on the Launchpad project.
99
1. **Generalization**: Support all AI agents, not just specific providers.
1010
2. **Consistency**: Follow Launchpad’s architectural patterns and conventions.
1111
3. **Clarity**: Document decisions and reasoning for human reviewers.
12+
4. **Branching**: NEVER work on, push to, or merge to the `main` branch. All work MUST be done on feature branches.
1213

1314
---
1415

@@ -29,13 +30,18 @@ Documentation is organized to minimize context overhead for agents:
2930
- Read `docs/guidance/project.md` to understand core architectural principles.
3031
- For feature requests, review the relevant PRD in `docs/requirements/`.
3132
- For bug fixes, review the relevant specification in `docs/specifications/`.
33+
- **Environment**: Ensure `GOTOOLCHAIN=auto` is used for all `go` commands to support the required toolchain.
3234

3335
### 2. Strategy Phase
36+
- **ALWAYS** create a new feature branch from `main`.
3437
- Propose changes that align with the **Phase Manager** architecture (`docs/specifications/architecture.md`).
3538
- Ensure changes are backwards compatible or include migrations (`docs/specifications/architecture.md`).
3639
- Document trade-offs and decisions in the PR description.
3740

3841
### 3. Execution Phase
42+
- **NEVER** push directly to `main`.
43+
- **NEVER** merge into `main`.
44+
- All work MUST be pushed to a remote feature branch for human review.
3945
- All commits MUST be signed.
4046
- Follow the testing strategy outlined in `docs/development/workflow.md`.
4147
- Use `make local` for rapid iteration and validation.

0 commit comments

Comments
 (0)