-
Notifications
You must be signed in to change notification settings - Fork 393
57 lines (49 loc) · 1.83 KB
/
integration.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
51
52
53
54
55
56
57
name: Run WebDriverIO integration tests
on:
push:
branches:
- master
- release
- 'spring*'
- 'summer*'
- 'winter*'
pull_request:
branches:
- master
- release
- 'spring*'
- 'summer*'
- 'winter*'
env:
PUPPETEER_SKIP_DOWNLOAD: 'true' # only needed for @best/runner-local, unused here
CHROMEDRIVER_BINARY: '../../../node_modules/chromedriver/lib/chromedriver/chromedriver' # pin wdio to local chromedriver
jobs:
run-integration-tests:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./packages/@lwc/integration-tests
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20.12.2'
cache: 'yarn'
# Needed for local browser integration tests
# chrome-version documentation can be found here: https://github.com/browser-actions/setup-chrome?tab=readme-ov-file#usage
- name: Setup chrome v124
uses: browser-actions/setup-chrome@v1
with:
chrome-version: 124
id: setup-chrome
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: ./
# Pin chromedriver to the same version as Chrome above
- name: Install chromedriver v124
run: yarn add -W chromedriver@^124
working-directory: ./
- run: CHROME_BINARY=${{ steps.setup-chrome.outputs.chrome-path }} yarn local:prod
- run: CHROME_BINARY=${{ steps.setup-chrome.outputs.chrome-path }} yarn local:dev