Skip to content

Webdriver.io End to End Testing #2420

Webdriver.io End to End Testing

Webdriver.io End to End Testing #2420

Workflow file for this run

name: Run tests
on:
push:
branches:
- main
paths-ignore:
- 'syntaxes/**'
- 'tests/**'
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- 'syntaxes/**'
- 'tests/**'
- '**.md'
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: '.nvmrc'
- name: npm install
run: npm ci
- name: lint
run: npm run lint
- name: format
run: npm run check-format
test:
strategy:
fail-fast: false
matrix:
vscode:
# - '1.82.3'
- '1.85.2'
# TODO: https://github.com/webdriverio-community/wdio-vscode-service/issues/101
# - 'stable'
# - 'insiders'
os:
- windows-latest
- macos-latest
# - macos-11.0
- ubuntu-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- name: Checkout Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: '.nvmrc'
- name: Install Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
terraform_version: '~1.6'
- name: Terraform version
run: terraform version
- name: Clean Install Dependencies
run: npm ci
env:
DETECT_CHROMEDRIVER_VERSION: true
- name: Compile
run: npm run compile
- name: Set up Xvfb (Ubuntu)
run: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
if: matrix.os == 'ubuntu-latest'
- name: Run Tests
run: npm run wdio
env:
CI: true
DISPLAY: ':99.0'
VSCODE_VERSION: ${{ matrix.vscode }}