2020-02-13 00:52:06 +03:00
|
|
|
name: tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
env:
|
|
|
|
CI: true
|
2020-02-21 09:55:39 +03:00
|
|
|
# Force terminal colors. @see https://www.npmjs.com/package/colors
|
|
|
|
FORCE_COLOR: 1
|
2020-02-13 00:52:06 +03:00
|
|
|
|
|
|
|
jobs:
|
2020-02-15 00:32:55 +03:00
|
|
|
chromium_linux:
|
|
|
|
name: "Chromium Linux"
|
2020-02-13 00:52:06 +03:00
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
2020-03-06 20:40:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-04-15 08:40:33 +03:00
|
|
|
node-version: 10
|
2020-04-09 01:23:00 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
|
|
|
- name: install xvfb
|
2020-02-13 00:52:06 +03:00
|
|
|
run: |
|
2020-04-09 01:23:00 +03:00
|
|
|
sudo apt-get install xvfb
|
2020-04-19 08:27:25 +03:00
|
|
|
- run: npm install
|
2020-02-15 06:02:17 +03:00
|
|
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
|
|
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
|
|
|
- run: xvfb-run --auto-servernum -- bash -c "npm run ccoverage 2>./chromium-linux-testrun.log"
|
|
|
|
env:
|
|
|
|
DEBUG: "*"
|
2020-04-10 02:57:01 +03:00
|
|
|
# Ensure output folder exists just in case it was not created by the test run.
|
|
|
|
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-chromium'), {recursive:true})"
|
2020-04-14 23:00:10 +03:00
|
|
|
if: failure()
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: chromium-linux-output
|
|
|
|
path: test/output-chromium
|
2020-02-15 06:02:17 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: chromium-linux-testrun.log
|
|
|
|
path: chromium-linux-testrun.log
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2020-02-15 00:32:55 +03:00
|
|
|
chromium_mac:
|
|
|
|
name: "Chromium Mac"
|
|
|
|
runs-on: macos-latest
|
2020-02-13 00:52:06 +03:00
|
|
|
steps:
|
2020-03-06 20:40:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-04-15 08:40:33 +03:00
|
|
|
node-version: 10
|
2020-04-09 01:23:00 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-19 08:27:25 +03:00
|
|
|
- run: npm install
|
2020-02-15 06:02:17 +03:00
|
|
|
- run: npm run ctest 2>./chromium-mac-testrun.log
|
|
|
|
env:
|
|
|
|
DEBUG: "*"
|
2020-04-10 02:57:01 +03:00
|
|
|
# Ensure output folder exists just in case it was not created by the test run.
|
|
|
|
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-chromium'), {recursive:true})"
|
2020-04-14 23:00:10 +03:00
|
|
|
if: failure()
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: chromium-mac-output
|
|
|
|
path: test/output-chromium
|
2020-02-15 06:02:17 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: chromium-mac-testrun.log
|
|
|
|
path: chromium-mac-testrun.log
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2020-02-15 00:32:55 +03:00
|
|
|
chromium_win:
|
|
|
|
name: "Chromium Win"
|
|
|
|
runs-on: windows-latest
|
2020-02-13 00:52:06 +03:00
|
|
|
steps:
|
2020-03-06 20:40:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-04-15 08:40:33 +03:00
|
|
|
node-version: 10
|
2020-04-09 01:23:00 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-19 08:27:25 +03:00
|
|
|
- run: npm install
|
2020-02-15 06:02:17 +03:00
|
|
|
- run: npm run ctest 2>./chromium-win-testrun.log
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
DEBUG: "*"
|
2020-04-10 02:57:01 +03:00
|
|
|
# Ensure output folder exists just in case it was not created by the test run.
|
|
|
|
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-chromium'), {recursive:true})"
|
2020-04-14 23:00:10 +03:00
|
|
|
if: failure()
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: chromium-win-output
|
|
|
|
path: test/output-chromium
|
2020-02-15 06:02:17 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: chromium-win-testrun.log
|
|
|
|
path: chromium-win-testrun.log
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2020-02-15 00:32:55 +03:00
|
|
|
webkit_linux:
|
|
|
|
name: "WebKit Linux"
|
|
|
|
runs-on: ubuntu-18.04
|
2020-02-13 00:52:06 +03:00
|
|
|
steps:
|
2020-03-06 20:40:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-04-15 08:40:33 +03:00
|
|
|
node-version: 10
|
2020-04-09 01:23:00 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
|
|
|
- name: install xvfb
|
2020-02-15 00:32:55 +03:00
|
|
|
run: |
|
|
|
|
sudo apt-get install xvfb
|
2020-04-19 08:27:25 +03:00
|
|
|
- run: npm install
|
2020-02-15 06:02:17 +03:00
|
|
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
|
|
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
|
|
|
- run: xvfb-run --auto-servernum -- bash -c "npm run wcoverage 2>./webkit-linux-testrun.log"
|
|
|
|
env:
|
|
|
|
DEBUG: "*,-pw:wrapped*"
|
2020-04-10 02:57:01 +03:00
|
|
|
# Ensure output folder exists just in case it was not created by the test run.
|
|
|
|
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-webkit'), {recursive:true})"
|
2020-04-14 23:00:10 +03:00
|
|
|
if: failure()
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: webkit-linux-output
|
|
|
|
path: test/output-webkit
|
2020-02-15 06:02:17 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: webkit-linux-testrun.log
|
|
|
|
path: webkit-linux-testrun.log
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2020-02-15 00:32:55 +03:00
|
|
|
webkit_mac:
|
|
|
|
name: "WebKit Mac"
|
|
|
|
runs-on: macos-latest
|
2020-02-13 00:52:06 +03:00
|
|
|
steps:
|
2020-03-06 20:40:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-04-15 08:40:33 +03:00
|
|
|
node-version: 10
|
2020-04-09 01:23:00 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-19 08:27:25 +03:00
|
|
|
- run: npm install
|
2020-02-15 06:02:17 +03:00
|
|
|
- run: npm run wtest 2>./webkit-mac-testrun.log
|
|
|
|
env:
|
|
|
|
DEBUG: "*,-pw:wrapped*"
|
2020-04-10 02:57:01 +03:00
|
|
|
# Ensure output folder exists just in case it was not created by the test run.
|
|
|
|
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-webkit'), {recursive:true})"
|
2020-04-14 23:00:10 +03:00
|
|
|
if: failure()
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: webkit-mac-output
|
|
|
|
path: test/output-webkit
|
2020-02-15 06:02:17 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: webkit-mac-testrun.log
|
|
|
|
path: webkit-mac-testrun.log
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2020-02-15 00:32:55 +03:00
|
|
|
webkit_win:
|
|
|
|
name: "WebKit Win"
|
2020-02-13 00:52:06 +03:00
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2020-03-06 20:40:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-04-15 08:40:33 +03:00
|
|
|
node-version: 10
|
2020-04-09 01:23:00 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-19 08:27:25 +03:00
|
|
|
- run: npm install
|
2020-03-14 00:44:49 +03:00
|
|
|
- run: npm run wtest 2>./webkit-win-testrun.log
|
2020-02-15 06:02:17 +03:00
|
|
|
shell: bash
|
2020-02-14 04:48:45 +03:00
|
|
|
env:
|
2020-02-15 06:02:17 +03:00
|
|
|
DEBUG: "*,-pw:wrapped*"
|
2020-04-10 02:57:01 +03:00
|
|
|
# Ensure output folder exists just in case it was not created by the test run.
|
|
|
|
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-webkit'), {recursive:true})"
|
2020-04-14 23:00:10 +03:00
|
|
|
if: failure()
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: webkit-win-output
|
|
|
|
path: test/output-webkit
|
2020-02-15 06:02:17 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: webkit-win-testrun.log
|
|
|
|
path: webkit-win-testrun.log
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2020-02-15 00:32:55 +03:00
|
|
|
firefox_linux:
|
|
|
|
name: "Firefox Linux"
|
|
|
|
runs-on: ubuntu-18.04
|
2020-02-13 00:52:06 +03:00
|
|
|
steps:
|
2020-03-06 20:40:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-04-15 08:40:33 +03:00
|
|
|
node-version: 10
|
2020-04-09 01:23:00 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
|
|
|
- name: install xvfb
|
2020-02-15 00:32:55 +03:00
|
|
|
run: |
|
|
|
|
sudo apt-get install xvfb
|
2020-04-19 08:27:25 +03:00
|
|
|
- run: npm install
|
2020-02-15 06:02:17 +03:00
|
|
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
|
|
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
|
|
|
- run: xvfb-run --auto-servernum -- bash -c "npm run fcoverage 2>./firefox-linux-testrun.log"
|
|
|
|
env:
|
|
|
|
DEBUG: "*"
|
2020-04-10 02:57:01 +03:00
|
|
|
# Ensure output folder exists just in case it was not created by the test run.
|
|
|
|
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-firefox'), {recursive:true})"
|
2020-04-14 23:00:10 +03:00
|
|
|
if: failure()
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: firefox-linux-output
|
|
|
|
path: test/output-firefox
|
2020-02-15 06:02:17 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: firefox-linux-testrun.log
|
|
|
|
path: firefox-linux-testrun.log
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2020-02-15 00:32:55 +03:00
|
|
|
firefox_mac:
|
|
|
|
name: "Firefox Mac"
|
2020-02-13 00:52:06 +03:00
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2020-03-06 20:40:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-04-15 08:40:33 +03:00
|
|
|
node-version: 10
|
2020-04-09 01:23:00 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-19 08:27:25 +03:00
|
|
|
- run: npm install
|
2020-02-15 06:02:17 +03:00
|
|
|
- run: npm run ftest 2>./firefox-mac-testrun.log
|
|
|
|
env:
|
|
|
|
DEBUG: "*"
|
2020-04-10 02:57:01 +03:00
|
|
|
# Ensure output folder exists just in case it was not created by the test run.
|
|
|
|
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-firefox'), {recursive:true})"
|
2020-04-14 23:00:10 +03:00
|
|
|
if: failure()
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: firefox-mac-output
|
|
|
|
path: test/output-firefox
|
2020-02-15 06:02:17 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: firefox-mac-testrun.log
|
|
|
|
path: firefox-mac-testrun.log
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2020-02-15 00:32:55 +03:00
|
|
|
firefox_win:
|
|
|
|
name: "Firefox Win"
|
|
|
|
runs-on: windows-latest
|
2020-02-13 00:52:06 +03:00
|
|
|
steps:
|
2020-03-06 20:40:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-04-15 08:40:33 +03:00
|
|
|
node-version: 10
|
2020-04-09 01:23:00 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-19 08:27:25 +03:00
|
|
|
- run: npm install
|
2020-02-15 06:02:17 +03:00
|
|
|
- run: npm run ftest 2>./firefox-win-testrun.log
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
DEBUG: "*"
|
2020-04-10 02:57:01 +03:00
|
|
|
# Ensure output folder exists just in case it was not created by the test run.
|
|
|
|
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-firefox'), {recursive:true})"
|
2020-04-14 23:00:10 +03:00
|
|
|
if: failure()
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: firefox-win-output
|
|
|
|
path: test/output-firefox
|
2020-02-15 06:02:17 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: firefox-win-testrun.log
|
|
|
|
path: firefox-win-testrun.log
|
2020-04-09 01:23:00 +03:00
|
|
|
|
2020-04-02 21:25:03 +03:00
|
|
|
test-package-installations:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-04-04 09:16:14 +03:00
|
|
|
# New node.js version supports `--unhandled-rejections=strict` flag that
|
|
|
|
# we use in `installation-tests.sh`.
|
|
|
|
node-version: 12
|
2020-04-09 01:23:00 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-19 08:27:25 +03:00
|
|
|
- run: npm install
|
2020-04-04 09:16:14 +03:00
|
|
|
- run: bash test/installation-tests/installation-tests.sh
|