Skip to content

chore: switch to npm #2870

chore: switch to npm

chore: switch to npm #2870

Workflow file for this run

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@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.18.0'
cache: 'npm'
- name: Setup npm
run: npm install -g [email protected]
# 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
uses: browser-actions/setup-chrome@v1
with:
chrome-version: 130
id: setup-chrome
- name: Install dependencies
run: npm ci
working-directory: ./
# Pin chromedriver to the same version as Chrome above
- name: Install chromedriver
run: npm install --save-dev chromedriver@^130
working-directory: ./
- run: CHROME_BINARY=${{ steps.setup-chrome.outputs.chrome-path }} npm run local:prod:ci
- run: CHROME_BINARY=${{ steps.setup-chrome.outputs.chrome-path }} npm run local:dev:ci