Skip to content

Commit 7ff1eb7

Browse files
authored
Rearranging
1 parent 166054b commit 7ff1eb7

File tree

1 file changed

+24
-27
lines changed

1 file changed

+24
-27
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
build-windows:
12-
name: Build VSIX (windows-latest)
13-
runs-on: windows-latest
11+
build-ubuntu:
12+
name: Build VSIX (ubuntu-latest)
13+
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
@@ -38,14 +38,14 @@ jobs:
3838
uses: actions/upload-artifact@v4
3939
if: always()
4040
with:
41-
name: build-windows-latest
41+
name: build-ubuntu-latest
4242
path: |
4343
*.vsix
4444
out
4545
46-
build-ubuntu:
47-
name: Build VSIX (ubuntu-latest)
48-
runs-on: ubuntu-latest
46+
build-windows:
47+
name: Build VSIX (windows-latest)
48+
runs-on: windows-latest
4949
steps:
5050
- name: Checkout
5151
uses: actions/checkout@v4
@@ -73,7 +73,7 @@ jobs:
7373
uses: actions/upload-artifact@v4
7474
if: always()
7575
with:
76-
name: build-ubuntu-latest
76+
name: build-windows-latest
7777
path: |
7878
*.vsix
7979
out
@@ -112,11 +112,11 @@ jobs:
112112
path: |
113113
*.vsix
114114
out
115-
116-
test-smoke-windows:
117-
name: Test ${{ matrix.version }}-windows-latest
118-
needs: build-windows
119-
runs-on: windows-latest
115+
116+
test-smoke-ubuntu:
117+
name: Test ${{ matrix.version }}-ubuntu-latest
118+
needs: build-ubuntu
119+
runs-on: ubuntu-latest
120120
strategy:
121121
fail-fast: false
122122
matrix:
@@ -130,7 +130,7 @@ jobs:
130130
- name: Download build artifacts
131131
uses: actions/download-artifact@v4
132132
with:
133-
name: build-windows-latest
133+
name: build-ubuntu-latest
134134

135135
- name: Set up MATLAB
136136
uses: matlab-actions/setup-matlab@v2
@@ -144,10 +144,10 @@ jobs:
144144

145145
- name: Clean install dependencies
146146
run: npm ci
147-
147+
148148
- name: Install npm dependencies
149149
run: npm install
150-
150+
151151
- name: Run UI tests
152152
run: npm run test-ui
153153
env:
@@ -159,14 +159,14 @@ jobs:
159159
uses: actions/upload-artifact@v4
160160
if: always()
161161
with:
162-
name: screenshots-windows-${{ matrix.version }}
162+
name: screenshots-ubuntu-${{ matrix.version }}
163163
path: .vscode-test/test-resources/screenshots
164164
if-no-files-found: ignore
165165

166-
test-smoke-ubuntu:
167-
name: Test ${{ matrix.version }}-ubuntu-latest
168-
needs: build-ubuntu
169-
runs-on: ubuntu-latest
166+
test-smoke-windows:
167+
name: Test ${{ matrix.version }}-windows-latest
168+
needs: build-windows
169+
runs-on: windows-latest
170170
strategy:
171171
fail-fast: false
172172
matrix:
@@ -180,7 +180,7 @@ jobs:
180180
- name: Download build artifacts
181181
uses: actions/download-artifact@v4
182182
with:
183-
name: build-ubuntu-latest
183+
name: build-windows-latest
184184

185185
- name: Set up MATLAB
186186
uses: matlab-actions/setup-matlab@v2
@@ -194,13 +194,10 @@ jobs:
194194

195195
- name: Clean install dependencies
196196
run: npm ci
197-
197+
198198
- name: Install npm dependencies
199199
run: npm install
200200

201-
- name: Clean up previous VSCode test user data
202-
run: rm -rf .vscode-test
203-
204201
- name: Run UI tests
205202
run: npm run test-ui
206203
env:
@@ -212,7 +209,7 @@ jobs:
212209
uses: actions/upload-artifact@v4
213210
if: always()
214211
with:
215-
name: screenshots-ubuntu-${{ matrix.version }}
212+
name: screenshots-windows-${{ matrix.version }}
216213
path: .vscode-test/test-resources/screenshots
217214
if-no-files-found: ignore
218215

0 commit comments

Comments
 (0)