File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change 19
19
jobs :
20
20
test-go :
21
21
name : Test Go
22
- runs-on : rspack-ubuntu-22.04-large
22
+ runs-on : ${{ matrix.runner }}
23
23
strategy :
24
24
matrix :
25
+ runner :
26
+ [
27
+ rspack-ubuntu-22.04-large,
28
+ rspack-windows-2022-large,
29
+ rspack-darwin-14-medium,
30
+ ]
25
31
go-version : ['1.24.1']
26
32
steps :
27
33
- name : Checkout code
53
59
54
60
test-node :
55
61
name : Test npm packages
56
- runs-on : rspack-ubuntu-22.04-large
62
+ runs-on : ${{ matrix.os }}
57
63
strategy :
58
64
matrix :
65
+ os :
66
+ [
67
+ rspack-ubuntu-22.04-large,
68
+ rspack-windows-2022-large,
69
+ rspack-darwin-14-medium,
70
+ ]
59
71
go-version : ['1.24.1']
60
72
steps :
61
73
- name : Checkout code
87
99
- name : TypeCheck
88
100
run : pnpm typecheck
89
101
90
- - name : Install xvfb and dependencies
91
- if : ${{ runner.os == 'Linux' && runner.environment == 'self-hosted' }}
102
+ - name : Install xvfb and dependencies (Linux only)
103
+ if : runner.os == 'Linux'
92
104
run : |
93
105
sudo apt update
94
106
sudo apt install -y libasound2 libgbm1 libgtk-3-0 libnss3 xvfb
97
109
uses : lynx-infra/cache@5c6160a6a4c7fca80a2f3057bb9dfc9513fcb732
98
110
with :
99
111
path : packages/vscode-extension/.vscode-test
100
- key : ' vscode-test'
112
+ key : vscode-test-${{ matrix.os }}
101
113
restore-keys : |
102
- - ' vscode-test-'
114
+ vscode-test-${{ matrix.os }}-
103
115
104
116
- name : Test on Linux
105
117
if : runner.os == 'Linux'
@@ -120,7 +132,7 @@ jobs:
120
132
- test-go
121
133
- test-node
122
134
if : always()
123
- runs-on : rspack- ubuntu-22.04-large
135
+ runs-on : ubuntu-latest
124
136
name : CI Done
125
137
steps :
126
138
- run : exit 1
You can’t perform that action at this time.
0 commit comments