|
32 | 32 | matrix: |
33 | 33 | runner: |
34 | 34 | [ |
35 | | - rspack-ubuntu-22.04-large, |
| 35 | + # rspack-ubuntu-22.04-large, |
36 | 36 | rspack-windows-2022-large-new, |
37 | | - rspack-darwin-14-medium, |
| 37 | + rspack-windows-2022-large, |
| 38 | + # rspack-darwin-14-medium, |
38 | 39 | ] |
39 | 40 | go-version: ['1.25.0'] |
40 | 41 | steps: |
|
57 | 58 | if: runner.os == 'Windows' |
58 | 59 | shell: pwsh |
59 | 60 | run: | |
| 61 | + Start-Sleep -Seconds 36000 |
60 | 62 | $packages = go list ./internal/... | Where-Object { $_ -ne "" } |
61 | 63 | $batchSize = 15 |
62 | 64 | $batch = @() |
@@ -85,185 +87,185 @@ jobs: |
85 | 87 | - name: Unit Test |
86 | 88 | if: runner.os != 'Windows' |
87 | 89 | run: go test -parallel 8 ./internal/... |
88 | | - lint: |
89 | | - name: Lint&Check |
90 | | - runs-on: rspack-ubuntu-22.04-large |
91 | | - steps: |
92 | | - - name: Checkout code |
93 | | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
94 | | - with: |
95 | | - submodules: true |
96 | | - |
97 | | - - name: Setup Node.js |
98 | | - uses: ./.github/actions/setup-node |
99 | | - |
100 | | - - name: Setup Go |
101 | | - uses: ./.github/actions/setup-go |
102 | | - with: |
103 | | - go-version: 1.25.0 |
104 | | - cache-name: go-lint |
105 | | - |
106 | | - - name: golangci-lint |
107 | | - uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8 |
108 | | - with: |
109 | | - version: v2.4.0 |
110 | | - args: --timeout=5m ./cmd/... ./internal/... |
111 | | - |
112 | | - - name: go vet |
113 | | - run: npm run lint:go |
114 | | - |
115 | | - - name: go fmt |
116 | | - run: npm run format:go |
117 | | - |
118 | | - - name: Check Spell |
119 | | - run: pnpm check-spell |
120 | | - |
121 | | - test-node: |
122 | | - name: Test npm packages |
123 | | - runs-on: ${{ matrix.os }} |
124 | | - strategy: |
125 | | - fail-fast: false |
126 | | - matrix: |
127 | | - os: [rspack-ubuntu-22.04-large, windows-latest] |
128 | | - go-version: ['1.25.0'] |
129 | | - steps: |
130 | | - - name: Checkout code |
131 | | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
132 | | - with: |
133 | | - submodules: true |
134 | | - |
135 | | - - name: Setup Go |
136 | | - uses: ./.github/actions/setup-go |
137 | | - with: |
138 | | - go-version: ${{ matrix.go-version }} |
139 | | - cache-name: test-node |
140 | | - |
141 | | - - name: Setup Node.js |
142 | | - uses: ./.github/actions/setup-node |
143 | | - |
144 | | - - name: Format |
145 | | - if: runner.os == 'Linux' |
146 | | - run: pnpm format:check |
147 | | - |
148 | | - - name: Build |
149 | | - run: pnpm run build |
150 | | - |
151 | | - - name: Dogfooding |
152 | | - if: runner.os == 'Linux' |
153 | | - run: pnpm run lint --format github |
154 | | - |
155 | | - - name: TypeCheck |
156 | | - if: runner.os == 'Linux' |
157 | | - run: pnpm typecheck |
158 | | - |
159 | | - - name: Install xvfb and dependencies (Linux only) |
160 | | - if: runner.os == 'Linux' |
161 | | - run: | |
162 | | - sudo apt update |
163 | | - sudo apt install -y libasound2 libgbm1 libgtk-3-0 libnss3 xvfb |
164 | | -
|
165 | | - - name: VSCode Test Cache |
166 | | - uses: lynx-infra/cache@5c6160a6a4c7fca80a2f3057bb9dfc9513fcb732 |
167 | | - with: |
168 | | - path: packages/vscode-extension/.vscode-test |
169 | | - key: vscode-test-${{ matrix.os }} |
170 | | - restore-keys: | |
171 | | - vscode-test-${{ matrix.os }}- |
172 | | -
|
173 | | - - name: Test on Linux |
174 | | - if: runner.os == 'Linux' |
175 | | - run: xvfb-run -a pnpm run test |
176 | | - |
177 | | - - name: Test on non-Linux |
178 | | - if: runner.os != 'Linux' |
179 | | - run: pnpm run test |
180 | | - |
181 | | - test-wasm: |
182 | | - name: Test WASM |
183 | | - runs-on: rspack-ubuntu-22.04-large |
184 | | - steps: |
185 | | - - name: Checkout code |
186 | | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
187 | | - with: |
188 | | - submodules: true |
189 | | - |
190 | | - - name: Setup Go |
191 | | - uses: ./.github/actions/setup-go |
192 | | - with: |
193 | | - go-version: 1.25.0 |
194 | | - cache-name: test-wasm |
195 | | - |
196 | | - - name: Setup Node.js |
197 | | - uses: ./.github/actions/setup-node |
198 | | - |
199 | | - - name: Build |
200 | | - run: | |
201 | | - pnpm --filter '@rslint/core' build:js |
202 | | - pnpm --filter '@rslint/wasm' build |
203 | | - test-rust: |
204 | | - name: Test Rust |
205 | | - runs-on: ${{ matrix.os }} |
206 | | - strategy: |
207 | | - fail-fast: false |
208 | | - matrix: |
209 | | - os: [macos-latest] |
210 | | - steps: |
211 | | - - name: Checkout code |
212 | | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
213 | | - with: |
214 | | - submodules: true |
215 | | - |
216 | | - - name: Setup Rust |
217 | | - uses: dtolnay/rust-toolchain@stable |
218 | | - with: |
219 | | - components: rustfmt, clippy |
220 | | - |
221 | | - - name: Rust Cache |
222 | | - uses: Swatinem/rust-cache@v2 |
223 | | - with: |
224 | | - workspaces: '.' |
225 | | - cache-on-failure: true |
226 | | - |
227 | | - - name: Check formatting |
228 | | - run: cargo fmt --all -- --check |
229 | | - |
230 | | - - name: Run clippy |
231 | | - run: cargo clippy --all-targets --all-features -- -D warnings |
232 | | - - name: Setup Node.js |
233 | | - uses: ./.github/actions/setup-node |
234 | | - - name: Setup Go |
235 | | - uses: ./.github/actions/setup-go |
236 | | - with: |
237 | | - go-version: 1.25.0 |
238 | | - cache-name: test-wasm |
239 | | - - name: Build |
240 | | - run: | |
241 | | - pnpm --filter '@rslint/tsgo' build |
242 | | -
|
243 | | - - name: Run tests |
244 | | - run: cargo test --verbose |
245 | | - website: |
246 | | - name: Build Website |
247 | | - runs-on: ubuntu-latest |
248 | | - steps: |
249 | | - - name: Checkout code |
250 | | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
251 | | - with: |
252 | | - submodules: true |
253 | | - |
254 | | - - name: Setup Node.js |
255 | | - uses: ./.github/actions/setup-node |
256 | | - |
257 | | - - name: Build |
258 | | - run: pnpm run build:website |
| 90 | + # lint: |
| 91 | + # name: Lint&Check |
| 92 | + # runs-on: rspack-ubuntu-22.04-large |
| 93 | + # steps: |
| 94 | + # - name: Checkout code |
| 95 | + # uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
| 96 | + # with: |
| 97 | + # submodules: true |
| 98 | + |
| 99 | + # - name: Setup Node.js |
| 100 | + # uses: ./.github/actions/setup-node |
| 101 | + |
| 102 | + # - name: Setup Go |
| 103 | + # uses: ./.github/actions/setup-go |
| 104 | + # with: |
| 105 | + # go-version: 1.25.0 |
| 106 | + # cache-name: go-lint |
| 107 | + |
| 108 | + # - name: golangci-lint |
| 109 | + # uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8 |
| 110 | + # with: |
| 111 | + # version: v2.4.0 |
| 112 | + # args: --timeout=5m ./cmd/... ./internal/... |
| 113 | + |
| 114 | + # - name: go vet |
| 115 | + # run: npm run lint:go |
| 116 | + |
| 117 | + # - name: go fmt |
| 118 | + # run: npm run format:go |
| 119 | + |
| 120 | + # - name: Check Spell |
| 121 | + # run: pnpm check-spell |
| 122 | + |
| 123 | + # test-node: |
| 124 | + # name: Test npm packages |
| 125 | + # runs-on: ${{ matrix.os }} |
| 126 | + # strategy: |
| 127 | + # fail-fast: false |
| 128 | + # matrix: |
| 129 | + # os: [rspack-ubuntu-22.04-large, windows-latest] |
| 130 | + # go-version: ['1.25.0'] |
| 131 | + # steps: |
| 132 | + # - name: Checkout code |
| 133 | + # uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
| 134 | + # with: |
| 135 | + # submodules: true |
| 136 | + |
| 137 | + # - name: Setup Go |
| 138 | + # uses: ./.github/actions/setup-go |
| 139 | + # with: |
| 140 | + # go-version: ${{ matrix.go-version }} |
| 141 | + # cache-name: test-node |
| 142 | + |
| 143 | + # - name: Setup Node.js |
| 144 | + # uses: ./.github/actions/setup-node |
| 145 | + |
| 146 | + # - name: Format |
| 147 | + # if: runner.os == 'Linux' |
| 148 | + # run: pnpm format:check |
| 149 | + |
| 150 | + # - name: Build |
| 151 | + # run: pnpm run build |
| 152 | + |
| 153 | + # - name: Dogfooding |
| 154 | + # if: runner.os == 'Linux' |
| 155 | + # run: pnpm run lint --format github |
| 156 | + |
| 157 | + # - name: TypeCheck |
| 158 | + # if: runner.os == 'Linux' |
| 159 | + # run: pnpm typecheck |
| 160 | + |
| 161 | + # - name: Install xvfb and dependencies (Linux only) |
| 162 | + # if: runner.os == 'Linux' |
| 163 | + # run: | |
| 164 | + # sudo apt update |
| 165 | + # sudo apt install -y libasound2 libgbm1 libgtk-3-0 libnss3 xvfb |
| 166 | + |
| 167 | + # - name: VSCode Test Cache |
| 168 | + # uses: lynx-infra/cache@5c6160a6a4c7fca80a2f3057bb9dfc9513fcb732 |
| 169 | + # with: |
| 170 | + # path: packages/vscode-extension/.vscode-test |
| 171 | + # key: vscode-test-${{ matrix.os }} |
| 172 | + # restore-keys: | |
| 173 | + # vscode-test-${{ matrix.os }}- |
| 174 | + |
| 175 | + # - name: Test on Linux |
| 176 | + # if: runner.os == 'Linux' |
| 177 | + # run: xvfb-run -a pnpm run test |
| 178 | + |
| 179 | + # - name: Test on non-Linux |
| 180 | + # if: runner.os != 'Linux' |
| 181 | + # run: pnpm run test |
| 182 | + |
| 183 | + # test-wasm: |
| 184 | + # name: Test WASM |
| 185 | + # runs-on: rspack-ubuntu-22.04-large |
| 186 | + # steps: |
| 187 | + # - name: Checkout code |
| 188 | + # uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
| 189 | + # with: |
| 190 | + # submodules: true |
| 191 | + |
| 192 | + # - name: Setup Go |
| 193 | + # uses: ./.github/actions/setup-go |
| 194 | + # with: |
| 195 | + # go-version: 1.25.0 |
| 196 | + # cache-name: test-wasm |
| 197 | + |
| 198 | + # - name: Setup Node.js |
| 199 | + # uses: ./.github/actions/setup-node |
| 200 | + |
| 201 | + # - name: Build |
| 202 | + # run: | |
| 203 | + # pnpm --filter '@rslint/core' build:js |
| 204 | + # pnpm --filter '@rslint/wasm' build |
| 205 | + # test-rust: |
| 206 | + # name: Test Rust |
| 207 | + # runs-on: ${{ matrix.os }} |
| 208 | + # strategy: |
| 209 | + # fail-fast: false |
| 210 | + # matrix: |
| 211 | + # os: [macos-latest] |
| 212 | + # steps: |
| 213 | + # - name: Checkout code |
| 214 | + # uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
| 215 | + # with: |
| 216 | + # submodules: true |
| 217 | + |
| 218 | + # - name: Setup Rust |
| 219 | + # uses: dtolnay/rust-toolchain@stable |
| 220 | + # with: |
| 221 | + # components: rustfmt, clippy |
| 222 | + |
| 223 | + # - name: Rust Cache |
| 224 | + # uses: Swatinem/rust-cache@v2 |
| 225 | + # with: |
| 226 | + # workspaces: '.' |
| 227 | + # cache-on-failure: true |
| 228 | + |
| 229 | + # - name: Check formatting |
| 230 | + # run: cargo fmt --all -- --check |
| 231 | + |
| 232 | + # - name: Run clippy |
| 233 | + # run: cargo clippy --all-targets --all-features -- -D warnings |
| 234 | + # - name: Setup Node.js |
| 235 | + # uses: ./.github/actions/setup-node |
| 236 | + # - name: Setup Go |
| 237 | + # uses: ./.github/actions/setup-go |
| 238 | + # with: |
| 239 | + # go-version: 1.25.0 |
| 240 | + # cache-name: test-wasm |
| 241 | + # - name: Build |
| 242 | + # run: | |
| 243 | + # pnpm --filter '@rslint/tsgo' build |
| 244 | + |
| 245 | + # - name: Run tests |
| 246 | + # run: cargo test --verbose |
| 247 | + # website: |
| 248 | + # name: Build Website |
| 249 | + # runs-on: ubuntu-latest |
| 250 | + # steps: |
| 251 | + # - name: Checkout code |
| 252 | + # uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
| 253 | + # with: |
| 254 | + # submodules: true |
| 255 | + |
| 256 | + # - name: Setup Node.js |
| 257 | + # uses: ./.github/actions/setup-node |
| 258 | + |
| 259 | + # - name: Build |
| 260 | + # run: pnpm run build:website |
259 | 261 | done: |
260 | 262 | needs: |
261 | 263 | - test-go |
262 | | - - test-node |
263 | | - - lint |
264 | | - - test-wasm |
265 | | - - test-rust |
266 | | - - website |
| 264 | + # - test-node |
| 265 | + # - lint |
| 266 | + # - test-wasm |
| 267 | + # - test-rust |
| 268 | + # - website |
267 | 269 | if: always() |
268 | 270 | runs-on: ubuntu-latest |
269 | 271 | name: CI Done |
|
0 commit comments