Skip to content

Commit 7a1647f

Browse files
committed
chore: add cache-dependency-path for Go modules in CI workflows and update .gitignore
1 parent 6bbaad8 commit 7a1647f

6 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/ci-agent.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
3838
with:
3939
go-version-file: gearbox-agent/go.mod
40+
cache-dependency-path: gearbox-agent/go.sum
4041

4142
- name: Download dependencies
4243
run: go mod download
@@ -75,6 +76,7 @@ jobs:
7576
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
7677
with:
7778
go-version-file: gearbox-agent/go.mod
79+
cache-dependency-path: gearbox-agent/go.sum
7880

7981
- name: Run golangci-lint
8082
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
@@ -106,6 +108,7 @@ jobs:
106108
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
107109
with:
108110
go-version-file: gearbox-agent/go.mod
111+
cache-dependency-path: gearbox-agent/go.sum
109112

110113
- name: Download dependencies
111114
run: go mod download

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
3838
with:
3939
go-version-file: gearbox/go.mod
40+
cache-dependency-path: gearbox/go.sum
4041

4142
- name: Install Templ
4243
run: go install github.com/a-h/templ/cmd/templ@v0.3.977
@@ -81,6 +82,7 @@ jobs:
8182
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
8283
with:
8384
go-version-file: gearbox/go.mod
85+
cache-dependency-path: gearbox/go.sum
8486

8587
- name: Install Templ
8688
run: go install github.com/a-h/templ/cmd/templ@v0.3.977
@@ -118,6 +120,7 @@ jobs:
118120
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
119121
with:
120122
go-version-file: gearbox/go.mod
123+
cache-dependency-path: gearbox/go.sum
121124

122125
- name: Install Templ
123126
run: go install github.com/a-h/templ/cmd/templ@v0.3.977

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
3838
with:
3939
go-version-file: gearbox/go.mod
40+
cache-dependency-path: |
41+
gearbox/go.sum
42+
gearbox-agent/go.sum
4043
4144
- name: Initialize CodeQL
4245
uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
7676
with:
7777
go-version-file: gearbox/go.mod
78+
cache-dependency-path: gearbox/go.sum
7879

7980
- name: Install Templ
8081
run: go install github.com/a-h/templ/cmd/templ@v0.3.977
@@ -156,6 +157,7 @@ jobs:
156157
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
157158
with:
158159
go-version-file: gearbox-agent/go.mod
160+
cache-dependency-path: gearbox-agent/go.sum
159161

160162
- name: Download dependencies
161163
run: go mod download

.github/workflows/security.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
3232
with:
3333
go-version-file: gearbox/go.mod
34+
cache-dependency-path: |
35+
gearbox/go.sum
36+
gearbox-agent/go.sum
3437
3538
- name: Run gosec for gearbox
3639
uses: securego/gosec@6decf96c3d272d5a8bbdcf9fddb5789d0be16a8d # v2.22.4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ gearbox-agent/data/
1313
gearbox/.env
1414
gearbox-agent/.env
1515
*.local.json
16+
.mcp.json
1617

1718
# Development
1819
.DS_Store

0 commit comments

Comments
 (0)