-
-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (41 loc) · 1.28 KB
/
ci-unit.yml
File metadata and controls
48 lines (41 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
permissions:
contents: read
name: Unit tests
on:
workflow_call:
# Make this a reusable workflow, no value needed
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
env:
TURBO_TELEMETRY_DISABLED: 1
jobs:
unit:
name: Unit Tests (${{ matrix.os }}.${{ matrix.node-version }})
strategy:
fail-fast: false
matrix:
node-version: ['20']
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
runs-on: ${{ matrix.os }}
steps:
- name: 👷 Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: 🛠️ Setup workspace
uses: ./.github/actions/setup-workspace
with:
node-version: ${{ matrix.node-version }}
- name: ⬇️ Download Build Archive
uses: ./.github/actions/download-archive
with:
name: vscode-webdriverio
path: .
filename: vscode-webdriverio-build.zip
- name: 🧪 Run the unit test
run: pnpm run test:unit
shell: bash
- name: 🐛 Debug Build
uses: stateful/vscode-server-action@ec99599aefe0bf96d14491e1d5f7e80d30e22247 # v1.1.0
if: failure()
with:
timeout: '180000'