Skip to content

Commit 93f162e

Browse files
committed
ci: update ci workflow
1 parent 3a57476 commit 93f162e

4 files changed

Lines changed: 28 additions & 7 deletions

File tree

.github/workflows/ci-e2e.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
with:
4848
path: e2e/.wdio-vscode-service
4949

50+
- name: 🖥️ Set screen resolution
51+
uses: ./.github/workflows/actions/set-screen-resolution
52+
5053
- name: 🧪 Run the e2e test
5154
env:
5255
E2E_SCENARIO: ${{ matrix.scenario }}

.github/workflows/ci-smoke.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
workflow_call:
55
# Make this a reusable workflow, no value needed
66
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
7+
inputs:
8+
scenario:
9+
description: 'Smoke scenario'
10+
type: string
711

812
env:
913
TURBO_TELEMETRY_DISABLED: 1
@@ -40,16 +44,21 @@ jobs:
4044
with:
4145
path: e2e/.wdio-vscode-service
4246

47+
- name: 🖥️ Set screen resolution
48+
uses: ./.github/workflows/actions/set-screen-resolution
49+
4350
- name: 🚂 Run the smoke test
44-
run: pnpm run test:smoke
51+
env:
52+
E2E_SCENARIO: ${{ inputs.scenario }}
53+
run: pnpm --filter @vscode-wdio/e2e run test:smoke:${E2E_SCENARIO}
4554
shell: bash
4655

4756
- name: 📦 Upload Test Logs on Failure
4857
uses: ./.github/workflows/actions/upload-archive
4958
if: failure()
5059
with:
51-
name: smoke-logs-${{ matrix.os }}
52-
output: smoke-logs-${{ matrix.os }}.zip
60+
name: smoke-${{ inputs.scenario }}--logs-${{ matrix.os }}
61+
output: smoke-${{ inputs.scenario }}-logs-${{ matrix.os }}.zip
5362
paths: e2e/logs
5463

5564
- name: 🐛 Debug Build

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,16 @@ jobs:
4646
with:
4747
compatibility-mode: 'yes'
4848

49-
smoke:
50-
name: Smoke
51-
needs: [lint, build, e2e, compatibility]
49+
smoke-config:
50+
name: Smoke - Update Config
51+
needs: [lint, build, e2e]
5252
uses: ./.github/workflows/ci-smoke.yml
53+
with:
54+
scenario: 'config'
55+
56+
smoke-timeout:
57+
name: Smoke - Worker idle timeout
58+
needs: [lint, build, e2e]
59+
uses: ./.github/workflows/ci-smoke.yml
60+
with:
61+
scenario: 'timeout'

e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test:e2e:basic:cucumber": "cross-env VSCODE_WDIO_E2E_SCENARIO=cucumber xvfb-maybe pnpm run wdio",
1818
"test:e2e:workspace": "cross-env VSCODE_WDIO_E2E_SCENARIO=workspace xvfb-maybe pnpm run wdio",
1919
"test:smoke": "run-s test:smoke:*",
20-
"test:smoke:update-config": "cross-env VSCODE_WDIO_E2E_SCENARIO=config xvfb-maybe wdio run ./wdioSmoke.conf.ts",
20+
"test:smoke:config": "cross-env VSCODE_WDIO_E2E_SCENARIO=config xvfb-maybe wdio run ./wdioSmoke.conf.ts",
2121
"test:smoke:timeout": "cross-env VSCODE_WDIO_E2E_SCENARIO=timeout xvfb-maybe wdio run ./wdioSmoke.conf.ts",
2222
"wdio": "wdio run ./wdio.conf.ts"
2323
},

0 commit comments

Comments
 (0)