Skip to content

ci: update Nightwatch workflow to fix wmic.exe issue #19

ci: update Nightwatch workflow to fix wmic.exe issue

ci: update Nightwatch workflow to fix wmic.exe issue #19

name: Nightwatch Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
browser: [chrome, firefox]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Install Firefox (if needed)
if: matrix.browser == 'firefox'
run: sudo apt-get update && sudo apt-get install -y firefox
- name: Install XVFB
run: sudo apt-get install xvfb
- name: Run Nightwatch tests on ${{ matrix.browser }}
run: xvfb-run --auto-servernum npm run ci-test -- --env ${{ matrix.browser }}