Skip to content

Use SCRIPT_TIMEOUT_MS to set timeouts in e2e tests #162

Use SCRIPT_TIMEOUT_MS to set timeouts in e2e tests

Use SCRIPT_TIMEOUT_MS to set timeouts in e2e tests #162

Workflow file for this run

name: run-tests
on:
push:
branches:
- '*'
pull_request:
branches:
- master
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '22'
- uses: nanasess/setup-chromedriver@master
- name: "Install deps"
run: npm install
- name: "Lint"
run: npm run lint
- name: "Run unit tests"
run: npm run test:unit
- name: "Run end-to-end tests"
run: |
google-chrome --version
chromedriver --version
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
npm run build:cdn && npm run test:e2e