File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 VSCODE_WDIO_E2E_COMPATIBILITY_MODE : ${{ inputs.compatibility-mode }}
1616
1717jobs :
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
Original file line number Diff line number Diff line change 99 TURBO_TELEMETRY_DISABLED : 1
1010
1111jobs :
12- unit :
12+ smoke :
1313 name : Smoke Tests (${{ matrix.os }}.${{ matrix.node-version }})
1414 strategy :
1515 fail-fast : false
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments