fix: env is not passed to worker threads #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e-tests | |
on: | |
push: | |
pull_request: | |
branches: [ main] | |
jobs: | |
Parallel-Tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
node-version: [14.x, 16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: sudo apt-get install xvfb | |
- name: Install Geckodriver | |
run: npm i geckodriver | |
- name: Install Dependencies | |
run: npm ci | |
- run: xvfb-run --auto-servernum node ./bin/nightwatch examples/tests/ --config examples/tests/e2e.conf.js | |
Serial-Tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
node-version: [14.x, 16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: sudo apt-get install xvfb | |
- name: Install Geckodriver | |
run: npm i geckodriver | |
- name: Install Dependencies | |
run: npm ci | |
- run: xvfb-run --auto-servernum node ./bin/nightwatch examples/tests/ --serial --config examples/tests/e2e.conf.js | |
Single-Browser-Tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
node-version: [14.x, 16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: sudo apt-get install xvfb | |
- name: Install Chromedriver | |
run: npm i chromedriver | |
- name: Install Dependencies | |
run: npm ci | |
- run: xvfb-run --auto-servernum node ./bin/nightwatch examples/tests/ -e chrome --config examples/tests/e2e.conf.js | |
Multiple-Browser-Tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
node-version: [14.x, 16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: sudo apt-get install xvfb | |
- name: Install Chromedriver & Geckodriver | |
run: npm i geckodriver chromedriver | |
- name: Install Dependencies | |
run: npm ci | |
- run: xvfb-run --auto-servernum node ./bin/nightwatch examples/tests/ -e chrome,firefox --config examples/tests/e2e.conf.js |