mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 21:58:52 +03:00
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
|
||||
with:
|
||||
node-version: 10.15
|
||||
- name: install required packages
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- name: install xvfb
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install libgbm-dev xvfb
|
||||
sudo apt-get install xvfb
|
||||
- run: npm install
|
||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
||||
@ -46,6 +46,7 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10.15
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- run: npm install
|
||||
- run: npm run ctest 2>./chromium-mac-testrun.log
|
||||
env:
|
||||
@ -64,6 +65,7 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10.15
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- run: npm install
|
||||
- run: npm run ctest 2>./chromium-win-testrun.log
|
||||
shell: bash
|
||||
@ -83,10 +85,9 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10.15
|
||||
- name: install required packages
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- name: install xvfb
|
||||
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
|
||||
- run: npm install
|
||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||
@ -108,6 +109,7 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10.15
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- run: npm install
|
||||
- run: npm run wtest 2>./webkit-mac-testrun.log
|
||||
env:
|
||||
@ -126,6 +128,7 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10.15
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- run: npm install
|
||||
- run: npm run wtest 2>./webkit-win-testrun.log
|
||||
shell: bash
|
||||
@ -145,9 +148,9 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10.15
|
||||
- name: install required packages
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- name: install xvfb
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install xvfb
|
||||
- run: npm install
|
||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||
@ -169,6 +172,7 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10.15
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- run: npm install
|
||||
- run: npm run ftest 2>./firefox-mac-testrun.log
|
||||
env:
|
||||
@ -187,6 +191,7 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10.15
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- run: npm install
|
||||
- run: npm run ftest 2>./firefox-win-testrun.log
|
||||
shell: bash
|
||||
@ -197,21 +202,16 @@ jobs:
|
||||
with:
|
||||
name: firefox-win-testrun.log
|
||||
path: firefox-win-testrun.log
|
||||
|
||||
test-package-installations:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- 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
|
||||
with:
|
||||
# New node.js version supports `--unhandled-rejections=strict` flag that
|
||||
# we use in `installation-tests.sh`.
|
||||
node-version: 12
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- run: npm install
|
||||
- run: bash test/installation-tests/installation-tests.sh
|
||||
|
Loading…
Reference in New Issue
Block a user