chore(ci): use playwright github action (#1712)
This commit is contained in:
parent
ade9d23c28
commit
d5a746aaba
30
.github/workflows/tests.yml
vendored
30
.github/workflows/tests.yml
vendored
|
|
@ -22,10 +22,10 @@ jobs:
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
- name: install required packages
|
- uses: microsoft/playwright-github-action@v1
|
||||||
|
- name: install xvfb
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get install xvfb
|
||||||
sudo apt-get install libgbm-dev xvfb
|
|
||||||
- run: npm install
|
- run: npm install
|
||||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||||
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
||||||
|
|
@ -46,6 +46,7 @@ jobs:
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run ctest 2>./chromium-mac-testrun.log
|
- run: npm run ctest 2>./chromium-mac-testrun.log
|
||||||
env:
|
env:
|
||||||
|
|
@ -64,6 +65,7 @@ jobs:
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run ctest 2>./chromium-win-testrun.log
|
- run: npm run ctest 2>./chromium-win-testrun.log
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
@ -83,10 +85,9 @@ jobs:
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
- name: install required packages
|
- uses: microsoft/playwright-github-action@v1
|
||||||
|
- name: install xvfb
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install libwoff1 libopus0 libwebp6 libwebpdemux2 libenchant1c2a libgudev-1.0-0 libsecret-1-0 libhyphen0 libgdk-pixbuf2.0-0 libegl1 libgles2 libevent-2.1-6 libnotify4 libxslt1.1
|
|
||||||
sudo apt-get install xvfb
|
sudo apt-get install xvfb
|
||||||
- run: npm install
|
- run: npm install
|
||||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||||
|
|
@ -108,6 +109,7 @@ jobs:
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run wtest 2>./webkit-mac-testrun.log
|
- run: npm run wtest 2>./webkit-mac-testrun.log
|
||||||
env:
|
env:
|
||||||
|
|
@ -126,6 +128,7 @@ jobs:
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run wtest 2>./webkit-win-testrun.log
|
- run: npm run wtest 2>./webkit-win-testrun.log
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
@ -145,9 +148,9 @@ jobs:
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
- name: install required packages
|
- uses: microsoft/playwright-github-action@v1
|
||||||
|
- name: install xvfb
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install xvfb
|
sudo apt-get install xvfb
|
||||||
- run: npm install
|
- run: npm install
|
||||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||||
|
|
@ -169,6 +172,7 @@ jobs:
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run ftest 2>./firefox-mac-testrun.log
|
- run: npm run ftest 2>./firefox-mac-testrun.log
|
||||||
env:
|
env:
|
||||||
|
|
@ -187,6 +191,7 @@ jobs:
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run ftest 2>./firefox-win-testrun.log
|
- run: npm run ftest 2>./firefox-win-testrun.log
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
@ -197,21 +202,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: firefox-win-testrun.log
|
name: firefox-win-testrun.log
|
||||||
path: firefox-win-testrun.log
|
path: firefox-win-testrun.log
|
||||||
|
|
||||||
test-package-installations:
|
test-package-installations:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt update
|
|
||||||
# chromium dependencies
|
|
||||||
sudo apt-get install libgbm1
|
|
||||||
# webkit dependencies
|
|
||||||
sudo apt-get install libwoff1 libopus0 libwebp6 libwebpdemux2 libenchant1c2a libgudev-1.0-0 libsecret-1-0 libhyphen0 libgdk-pixbuf2.0-0 libegl1 libgles2 libevent-2.1-6 libnotify4 libvpx5 libxslt1.1
|
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
# New node.js version supports `--unhandled-rejections=strict` flag that
|
# New node.js version supports `--unhandled-rejections=strict` flag that
|
||||||
# we use in `installation-tests.sh`.
|
# we use in `installation-tests.sh`.
|
||||||
node-version: 12
|
node-version: 12
|
||||||
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: bash test/installation-tests/installation-tests.sh
|
- run: bash test/installation-tests/installation-tests.sh
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue