forked from webdriverio/webdriverio
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.8 KB
/
test-component.yml
File metadata and controls
59 lines (51 loc) · 1.8 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
49
50
51
52
53
54
55
56
57
58
59
name: Component Tests
on:
workflow_call:
# Make this a reusable workflow, no value needed
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
jobs:
check:
name: Component Test (${{ matrix.os }}.${{ matrix.node }})
permissions:
contents: read
actions: write
strategy:
fail-fast: false
matrix:
node: ['18', '20', '22']
os: [
# 'ubuntu-latest',
'windows-latest',
'macos-latest'
]
runs-on: ${{ matrix.os }}
steps:
- name: ⬇️ Checkout Code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: 🧑🔧 Get Core Dependencies
uses: ./.github/workflows/actions/get-core-dependencies
- name: 🐢 Setup Node ${{ matrix.node }}
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Download Build Archive
uses: ./.github/workflows/actions/download-archive
with:
name: webdriverio
path: .
filename: webdriverio-build.zip
- name: Component Tests
run: pnpm run test:component
# component testing on Windows is currently broken
# https://github.com/webdriverio/webdriverio/actions/runs/9075112951/job/24935302330#step:7:30
if: matrix.os != 'windows-latest'
shell: bash
- name: Check Git Context
if: matrix.os != 'windows-latest'
uses: ./.github/workflows/actions/check-git-context
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: failure()
with:
name: component-tests-${{ matrix.os }}-${{ matrix.node }}-logs
path: e2e/browser-runner/logs