Skip to content

Commit 4d850ec

Browse files
committed
CI fixes
Force module mode in CI Set GO111MODULE=on for the tests workflow to avoid GOPATH mode import failures. Force GOWORK=off and GOFLAGS=-mod=mod to ensure module mode in tests.
1 parent 1964eac commit 4d850ec

File tree

4 files changed

+34
-6
lines changed

4 files changed

+34
-6
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Release
22

33
on:
44
push:
5+
paths-ignore:
6+
- '*.md'
7+
- '*.org'
58
branches:
69
- main
710

@@ -11,13 +14,18 @@ permissions:
1114
jobs:
1215
release:
1316
runs-on: ubuntu-latest
17+
env:
18+
GO111MODULE: on
19+
GOWORK: off
20+
GOFLAGS: -mod=mod
1421
steps:
1522
- uses: actions/checkout@v4
23+
- uses: actions/setup-go@v5
1624
with:
17-
fetch-depth: 0
25+
go-version: '1.24.x'
1826
- uses: actions/setup-node@v4
1927
with:
20-
node-version: '20'
28+
node-version: '25'
2129
cache: npm
2230
cache-dependency-path: package-lock.json
2331
- name: Install version tooling

.github/workflows/tests.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
name: Tests
22

33
on:
4-
push:
54
pull_request:
5+
paths-ignore:
6+
- '*.md'
7+
- '*.org'
8+
branches:
9+
- main
610

711
jobs:
812
test:
913
runs-on: ubuntu-latest
14+
env:
15+
GO111MODULE: on
16+
GOWORK: off
17+
GOFLAGS: -mod=mod
1018
steps:
1119
- uses: actions/checkout@v4
1220
with:
1321
fetch-depth: 0
1422
- uses: actions/setup-go@v5
1523
with:
16-
go-version: '1.22.x'
24+
go-version: '1.24.x'
1725
- uses: actions/setup-node@v4
1826
with:
19-
node-version: '20'
27+
node-version: '25'
2028
cache: 'npm'
2129
cache-dependency-path: |
2230
package-lock.json

frontend/package-lock.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module gestalt
22

3-
go 1.22
3+
go 1.24
44

55
require (
66
github.com/creack/pty v1.1.21

0 commit comments

Comments
 (0)