@@ -51,23 +51,24 @@ jobs:
51
51
- name : Unit Test
52
52
run : |
53
53
go test -parallel 8 ./internal/...
54
- go- lint :
55
- name : Go Lint
54
+ lint :
55
+ name : Lint&Check
56
56
runs-on : rspack-ubuntu-22.04-large
57
57
steps :
58
58
- name : Checkout code
59
59
uses : actions/checkout@v4
60
60
with :
61
61
submodules : true
62
- - name : Setup Node
63
- uses : actions/setup-node@v4
64
- with :
65
- node-version : ' 24 '
62
+
63
+ - name : Setup Node.js
64
+ uses : ./.github/actions/setup-node
65
+
66
66
- name : Setup Go
67
67
uses : ./.github/actions/setup-go
68
68
with :
69
69
go-version : 1.25.0
70
70
cache-name : go-lint
71
+
71
72
- name : golangci-lint
72
73
uses : golangci/golangci-lint-action@v8
73
74
with :
80
81
- name : go fmt
81
82
run : npm run format:go
82
83
84
+ - name : Check Spell
85
+ run : pnpm check-spell
86
+
83
87
test-node :
84
88
name : Test npm packages
85
89
runs-on : ${{ matrix.os }}
@@ -108,7 +112,11 @@ jobs:
108
112
run : pnpm format:check
109
113
110
114
- name : Build
111
- run : pnpm build
115
+ run : pnpm -r --filter='@rslint/test-tools...' --filter='rslint...' build
116
+
117
+ - name : Dogfooding
118
+ if : runner.os == 'Linux'
119
+ run : pnpm run lint
112
120
113
121
- name : TypeCheck
114
122
if : runner.os == 'Linux'
@@ -130,25 +138,40 @@ jobs:
130
138
131
139
- name : Test on Linux
132
140
if : runner.os == 'Linux'
133
- run : xvfb-run -a pnpm -r test
141
+ run : xvfb-run -a pnpm -r --filter='@rslint/test-tools...' --filter='rslint...' test
134
142
135
143
- name : Test on non-Linux
136
144
if : runner.os != 'Linux'
137
- run : pnpm -r test
145
+ run : pnpm -r --filter='@rslint/test-tools...' --filter='rslint...' test
138
146
139
- - name : Check Spell
140
- if : runner.os == 'Linux'
141
- run : pnpm check-spell
147
+ test-wasm :
148
+ name : Test WASM
149
+ runs-on : rspack-ubuntu-22.04-large
150
+ steps :
151
+ - name : Checkout code
152
+ uses : actions/checkout@v4
153
+ with :
154
+ submodules : true
142
155
143
- - name : Lint
144
- if : runner.os == 'Linux'
145
- run : pnpm run lint
156
+ - name : Setup Go
157
+ uses : ./.github/actions/setup-go
158
+ with :
159
+ go-version : 1.25.0
160
+ cache-name : test-wasm
161
+
162
+ - name : Setup Node.js
163
+ uses : ./.github/actions/setup-node
146
164
165
+ - name : Build
166
+ run : |
167
+ pnpm --filter '@rslint/core' build:js
168
+ pnpm --filter '@rslint/wasm' build
147
169
done :
148
170
needs :
149
171
- test-go
150
172
- test-node
151
- - go-lint
173
+ - lint
174
+ - test-wasm
152
175
if : always()
153
176
runs-on : ubuntu-latest
154
177
name : CI Done
0 commit comments