File tree Expand file tree Collapse file tree 6 files changed +39
-19
lines changed Expand file tree Collapse file tree 6 files changed +39
-19
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: Setup Go
4
4
inputs :
5
5
go-version :
6
6
description : Go version range to set up.
7
- default : ' >=1.24.0 '
7
+ required : true
8
8
cache-name :
9
9
description : Name of scoped cache for this set up.
10
10
default : ' cache'
Original file line number Diff line number Diff line change @@ -12,9 +12,12 @@ permissions:
12
12
# Optional: allow read access to pull requests. Use with `only-new-issues` option.
13
13
pull-requests : read
14
14
15
+ concurrency :
16
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
17
+ cancel-in-progress : ${{ github.ref_name != 'main' }}
18
+
15
19
env :
16
- GO_VERSION : ' 1.24.1'
17
- GOMAXPROCS : 4
20
+ GOMAXPROCS : 8
18
21
19
22
jobs :
20
23
test-go :
27
30
[
28
31
rspack-ubuntu-22.04-large,
29
32
rspack-windows-2022-large,
33
+ windows-latest,
30
34
rspack-darwin-14-medium,
31
35
]
32
- go-version : ['1.24.1 ']
36
+ go-version : ['1.25.0 ']
33
37
steps :
34
38
- name : Checkout code
35
39
uses : actions/checkout@v4
@@ -45,21 +49,37 @@ jobs:
45
49
with :
46
50
go-version : ${{ matrix.go-version }}
47
51
cache-name : test-go
52
+ - name : Unit Test
53
+ run : |
54
+ go test -parallel 4 ./internal/...
55
+ go-lint :
56
+ name : Go Lint
57
+ runs-on : rspack-ubuntu-22.04-large
58
+ steps :
59
+ - name : Checkout code
60
+ uses : actions/checkout@v4
61
+ with :
62
+ submodules : true
63
+ - name : Setup Node
64
+ uses : actions/setup-node@v4
65
+ with :
66
+ node-version : ' 24'
67
+ - name : Setup Go
68
+ uses : ./.github/actions/setup-go
69
+ with :
70
+ go-version : 1.25.0
71
+ cache-name : go-lint
48
72
- name : golangci-lint
49
- if : runner.os == 'Linux'
50
73
uses : golangci/golangci-lint-action@v8
51
74
with :
52
- version : v2.3 .0
75
+ version : v2.4 .0
53
76
args : --timeout=5m ./cmd/... ./internal/...
77
+
54
78
- name : go vet
55
- if : runner.os == 'Linux'
56
79
run : npm run lint:go
80
+
57
81
- name : go fmt
58
- if : runner.os == 'Linux'
59
82
run : npm run format:go
60
- - name : Unit Test
61
- run : |
62
- go test -parallel 4 ./internal/...
63
83
64
84
test-node :
65
85
name : Test npm packages
68
88
fail-fast : false
69
89
matrix :
70
90
os : [rspack-ubuntu-22.04-large, windows-latest]
71
- go-version : ['1.24.1 ']
91
+ go-version : ['1.25.0 ']
72
92
steps :
73
93
- name : Checkout code
74
94
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 38
38
- name : Setup Go
39
39
uses : actions/setup-go@v5
40
40
with :
41
- go-version : 1.24.1
41
+ go-version : 1.25.0
42
42
- name : Install pnpm
43
43
run : corepack enable
44
44
- name : Install JavaScript dependencies
Original file line number Diff line number Diff line change 42
42
- extension
43
43
permissions :
44
44
contents : read
45
- env :
46
- GO_VERSION : ' 1.24.1'
47
45
48
46
jobs :
49
47
publish-npm :
@@ -272,6 +270,8 @@ jobs:
272
270
run : xvfb-run -a pnpm -r test
273
271
274
272
build :
273
+ env :
274
+ GOMAXPROCS : 8
275
275
name : Build-Binaries
276
276
strategy :
277
277
fail-fast : false
Original file line number Diff line number Diff line change 1
1
module github.com/web-infra-dev/rslint
2
2
3
- go 1.24.2
3
+ go 1.25.0
4
4
5
- toolchain go1.24.4
5
+ toolchain go1.25.0
6
6
7
7
replace (
8
8
github.com/microsoft/typescript-go/shim/ast => ./shim/ast
Original file line number Diff line number Diff line change 1
- go 1.24.2
1
+ go 1.25.0
2
2
3
- toolchain go1.24.4
3
+ toolchain go1.25.0
4
4
5
5
use (
6
6
.
You can’t perform that action at this time.
0 commit comments