forked from ionic-team/stencil
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.24 KB
/
test-wdio.yml
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
name: WebdriverIO Tests
on:
merge_group:
pull_request:
push:
branches:
- 'main'
jobs:
build_core:
name: Build
uses: ./.github/workflows/build.yml
run_wdio:
name: Run WebdriverIO Component Tests (${{ matrix.browser }})
runs-on: ubuntu-22.04
needs: [build_core]
strategy:
matrix:
browser: [CHROME, FIREFOX, EDGE]
steps:
- name: Checkout Code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Use Node Version from Volta
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
# pull the version to use from the volta key in package.json
node-version-file: './test/wdio/package.json'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Download Build Archive
uses: ./.github/workflows/actions/download-archive
with:
name: stencil-core
path: .
filename: stencil-core-build.zip
- name: Run WebdriverIO Component Tests
run: npm run test.wdio
env:
BROWSER: ${{ matrix.browser }}
- name: Check Git Context
uses: ./.github/workflows/actions/check-git-context