Skip to content

Commit 58f7cb7

Browse files
committed
ci: update the ci workflow
1 parent 6a3f395 commit 58f7cb7

5 files changed

Lines changed: 107 additions & 1 deletion

File tree

.github/workflows/ci-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
default: 'ubuntu-latest'
1111
type: string
1212

13+
env:
14+
TURBO_TELEMETRY_DISABLED: 1
15+
1316
jobs:
1417
build:
1518
name: Build
@@ -26,7 +29,7 @@ jobs:
2629
node-version: '20'
2730

2831
- name: 🏗️ Build Packages
29-
run: pnpm run compile
32+
run: pnpm run build
3033
shell: bash
3134

3235
- name: ⬆️ Upload Build Artifacts

.github/workflows/ci-e2e.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: E2E tests
2+
3+
on:
4+
workflow_call:
5+
# Make this a reusable workflow, no value needed
6+
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
7+
8+
env:
9+
TURBO_TELEMETRY_DISABLED: 1
10+
11+
jobs:
12+
unit:
13+
name: E2E Tests (${{ matrix.os }}.${{ matrix.node-version }})
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
node-version: ['20']
18+
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- name: 👷 Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
ssh-key: ${{ secrets.DEPLOY_KEY }}
25+
26+
- name: 🛠️ Setup workspace
27+
uses: ./.github/workflows/actions/setup-workspace
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
31+
- name: ⬇️ Download Build Archive
32+
uses: ./.github/workflows/actions/download-archive
33+
with:
34+
name: vscode-webdriverio
35+
path: .
36+
filename: vscode-webdriverio-build.zip
37+
38+
- name: 🧪 Run the e2e test
39+
run: pnpm run test:e2e
40+
shell: bash
41+
42+
- name: 🐛 Debug Build
43+
uses: stateful/[email protected]
44+
if: failure()
45+
with:
46+
timeout: '180000'

.github/workflows/ci-typecheck.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Typecheck
2+
3+
on:
4+
workflow_call:
5+
# Make this a reusable workflow, no value needed
6+
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
7+
8+
env:
9+
TURBO_TELEMETRY_DISABLED: 1
10+
11+
jobs:
12+
typecheck:
13+
name: Typecheck
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
node-version: ['20']
18+
os: ['ubuntu-latest']
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- name: 👷 Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
ssh-key: ${{ secrets.DEPLOY_KEY }}
25+
26+
- name: 🛠️ Setup workspace
27+
uses: ./.github/workflows/actions/setup-workspace
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
31+
- name: ⬇️ Download Build Archive
32+
uses: ./.github/workflows/actions/download-archive
33+
with:
34+
name: vscode-webdriverio
35+
path: .
36+
filename: vscode-webdriverio-build.zip
37+
38+
- name: 🏛️ Run the typecheck
39+
run: pnpm run typecheck --only
40+
shell: bash

.github/workflows/ci-unit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
# Make this a reusable workflow, no value needed
66
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
77

8+
env:
9+
TURBO_TELEMETRY_DISABLED: 1
10+
811
jobs:
912
unit:
1013
name: Unit Tests (${{ matrix.os }}.${{ matrix.node-version }})

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- v[0-9]+.[0-9]+.[0-9]+*
1010
pull_request:
1111

12+
concurrency:
13+
group: ci-${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
build:
1418
name: Build
@@ -21,7 +25,17 @@ jobs:
2125
needs: [build]
2226
uses: ./.github/workflows/ci-lint.yml
2327

28+
typecheck:
29+
name: Typecheck
30+
needs: [build]
31+
uses: ./.github/workflows/ci-typecheck.yml
32+
2433
unit:
2534
name: Unit
2635
needs: [build]
2736
uses: ./.github/workflows/ci-unit.yml
37+
38+
e2e:
39+
name: E2E
40+
needs: [build]
41+
uses: ./.github/workflows/ci-e2e.yml

0 commit comments

Comments
 (0)