Skip to content

Commit c29c82a

Browse files
committed
ci: separate workspace and basic scenario
1 parent a72b7e0 commit c29c82a

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/ci-e2e.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ env:
1515
VSCODE_WDIO_E2E_COMPATIBILITY_MODE: ${{ inputs.compatibility-mode }}
1616

1717
jobs:
18-
unit:
19-
name: E2E Tests (${{ matrix.os }}.${{ matrix.node-version }})
18+
e2e:
19+
name: E2E Tests - ${{ matrix.scenario }} (${{ matrix.os }}.${{ matrix.node-version }})
2020
strategy:
2121
fail-fast: false
2222
matrix:
2323
node-version: ['20']
2424
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
25+
scenario: ['basic', 'workspace']
2526
runs-on: ${{ matrix.os }}
2627
steps:
2728
- name: 👷 Checkout
@@ -47,15 +48,17 @@ jobs:
4748
path: e2e/.wdio-vscode-service
4849

4950
- name: 🧪 Run the e2e test
50-
run: pnpm run test:e2e
51+
env:
52+
E2E_SCENARIO: ${{ matrix.scenario }}
53+
run: pnpm --filter @vscode-wdio/e2e run test:e2e:${E2E_SCENARIO}
5154
shell: bash
5255

5356
- name: 📦 Upload Test Logs on Failure
5457
uses: ./.github/workflows/actions/upload-archive
5558
if: failure()
5659
with:
57-
name: ${{ inputs.compatibility-mode == 'yes' && 'compatibility' || 'e2e' }}-logs-${{ matrix.os }}
58-
output: ${{ inputs.compatibility-mode == 'yes' && 'compatibility' || 'e2e' }}-logs-${{ matrix.os }}.zip
60+
name: ${{ inputs.compatibility-mode == 'yes' && 'compatibility' || 'e2e' }}-${{ matrix.scenario }}-logs-${{ matrix.os }}
61+
output: ${{ inputs.compatibility-mode == 'yes' && 'compatibility' || 'e2e' }}-${{ matrix.scenario }}-logs-${{ matrix.os }}.zip
5962
paths: e2e/logs
6063

6164
- name: 🐛 Debug Build

.github/workflows/ci-smoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
TURBO_TELEMETRY_DISABLED: 1
1010

1111
jobs:
12-
unit:
12+
smoke:
1313
name: Smoke Tests (${{ matrix.os }}.${{ matrix.node-version }})
1414
strategy:
1515
fail-fast: false

e2e/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
}
1111
},
1212
"scripts": {
13-
"test:e2e": "run-s test:e2e:*",
14-
"test:e2e:mocha": "cross-env VSCODE_WDIO_E2E_FRAMEWORK=mocha xvfb-maybe pnpm run wdio",
15-
"test:e2e:jasmine": "cross-env VSCODE_WDIO_E2E_FRAMEWORK=jasmine xvfb-maybe pnpm run wdio",
16-
"test:e2e:cucumber": "cross-env VSCODE_WDIO_E2E_FRAMEWORK=cucumber xvfb-maybe pnpm run wdio",
13+
"test:e2e": "run-s test:e2e:basic test:e2e:workspace",
14+
"test:e2e:basic": "run-s test:e2e:basic:*",
15+
"test:e2e:basic:mocha": "cross-env VSCODE_WDIO_E2E_FRAMEWORK=mocha xvfb-maybe pnpm run wdio",
16+
"test:e2e:basic:jasmine": "cross-env VSCODE_WDIO_E2E_FRAMEWORK=jasmine xvfb-maybe pnpm run wdio",
17+
"test:e2e:basic:cucumber": "cross-env VSCODE_WDIO_E2E_FRAMEWORK=cucumber xvfb-maybe pnpm run wdio",
1718
"test:e2e:workspace": "cross-env VSCODE_WDIO_E2E_FRAMEWORK=workspace xvfb-maybe pnpm run wdio",
1819
"test:smoke": "run-s test:smoke:*",
1920
"test:smoke:update-config": "xvfb-maybe wdio run ./wdioSmoke.conf.ts",

0 commit comments

Comments
 (0)