2020-02-13 00:52:06 +03:00
|
|
|
name: tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-04-22 05:20:19 +03:00
|
|
|
- release-*
|
2020-02-13 00:52:06 +03:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-04-22 05:20:19 +03:00
|
|
|
- release-*
|
2020-02-13 00:52:06 +03:00
|
|
|
|
|
|
|
env:
|
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-07-10 23:15:57 +03:00
|
|
|
test_linux:
|
2020-07-29 21:36:38 +03:00
|
|
|
name: ${{ matrix.os }} (${{ matrix.browser }})
|
2020-07-10 23:15:57 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
browser: [chromium, firefox, webkit]
|
2020-07-29 21:36:38 +03:00
|
|
|
os: [ubuntu-18.04, ubuntu-20.04]
|
|
|
|
runs-on: ${{ matrix.os }}
|
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-07-31 03:47:39 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-21 02:57:01 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2020-06-12 02:41:58 +03:00
|
|
|
- run: mkdir -p coredumps
|
|
|
|
# Set core dump file name pattern
|
|
|
|
- run: sudo bash -c 'echo "$(pwd -P)/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_pattern'
|
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.
|
2020-06-12 09:58:24 +03:00
|
|
|
# Enable core dumps in the subshell.
|
2020-08-29 18:27:32 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npx test-runner test/ --jobs=1 --forbid-only --timeout=30000 --global-timeout=5400000 --retries=3 --reporter=dot,json && npm run coverage"
|
2020-07-16 02:52:41 +03:00
|
|
|
env:
|
|
|
|
BROWSER: ${{ matrix.browser }}
|
2020-08-26 01:46:42 +03:00
|
|
|
PWRUNNER_JSON_REPORT: "test-results/report.json"
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
2020-08-26 01:46:42 +03:00
|
|
|
if: always()
|
2020-04-10 02:57:01 +03:00
|
|
|
with:
|
2020-08-17 05:19:52 +03:00
|
|
|
name: ${{ matrix.browser }}-${{ matrix.os }}-test-results
|
|
|
|
path: test-results
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2020-07-10 23:15:57 +03:00
|
|
|
test_mac:
|
|
|
|
name: "macOS"
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
browser: [chromium, firefox, webkit]
|
2020-09-22 22:52:39 +03:00
|
|
|
shard: ['1', '2']
|
2020-02-15 00:32:55 +03:00
|
|
|
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-07-31 03:47:39 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-21 02:57:01 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2020-09-22 22:52:39 +03:00
|
|
|
- run: npx test-runner test/ --jobs=1 --forbid-only --timeout=30000 --global-timeout=5400000 --retries=3 --reporter=dot,json --shard=${{ matrix.shard }}/2
|
2020-07-16 02:52:41 +03:00
|
|
|
env:
|
|
|
|
BROWSER: ${{ matrix.browser }}
|
2020-08-26 01:46:42 +03:00
|
|
|
PWRUNNER_JSON_REPORT: "test-results/report.json"
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
2020-08-26 01:46:42 +03:00
|
|
|
if: ${{ always() }}
|
2020-04-10 02:57:01 +03:00
|
|
|
with:
|
2020-09-22 22:52:39 +03:00
|
|
|
name: ${{ matrix.browser }}-mac-test-results-${{ matrix.shard }}
|
2020-08-17 05:19:52 +03:00
|
|
|
path: test-results
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2020-07-10 23:15:57 +03:00
|
|
|
test_win:
|
|
|
|
name: "Windows"
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
browser: [chromium, firefox, webkit]
|
2020-02-13 00:52:06 +03:00
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2020-07-24 04:06:16 +03:00
|
|
|
- name: Install Media Pack
|
|
|
|
shell: powershell
|
|
|
|
run: Install-WindowsFeature Server-Media-Foundation
|
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-07-31 03:47:39 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-21 02:57:01 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2020-08-29 18:27:32 +03:00
|
|
|
- run: npx test-runner test/ --jobs=1 --forbid-only --timeout=30000 --global-timeout=5400000 --retries=3 --reporter=dot,json
|
2020-07-16 02:52:41 +03:00
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
BROWSER: ${{ matrix.browser }}
|
2020-08-26 01:46:42 +03:00
|
|
|
PWRUNNER_JSON_REPORT: "test-results/report.json"
|
2020-04-10 02:57:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
2020-08-26 01:46:42 +03:00
|
|
|
if: ${{ always() }}
|
2020-04-10 02:57:01 +03:00
|
|
|
with:
|
2020-08-17 05:19:52 +03:00
|
|
|
name: ${{ matrix.browser }}-win-test-results
|
|
|
|
path: test-results
|
2020-04-09 01:23:00 +03:00
|
|
|
|
2020-04-02 21:25:03 +03:00
|
|
|
test-package-installations:
|
|
|
|
runs-on: ubuntu-latest
|
2020-05-01 10:10:52 +03:00
|
|
|
strategy:
|
2020-07-24 01:14:36 +03:00
|
|
|
fail-fast: false
|
2020-05-01 10:10:52 +03:00
|
|
|
matrix:
|
|
|
|
node_version:
|
|
|
|
- "^10.17.0" # pre 10.17, --unhandled-rejections=strict was not an option (https://github.com/nodejs/node/pull/26599) which we need in our tests
|
|
|
|
- "^12.0.0"
|
|
|
|
- "^14.1.0" # pre 14.1, zip extraction was broken (https://github.com/microsoft/playwright/issues/1988)
|
2020-04-02 21:25:03 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-05-01 10:10:52 +03:00
|
|
|
node-version: ${{ matrix.node_version }}
|
2020-07-31 03:47:39 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-21 02:57:01 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2020-05-27 03:19:05 +03:00
|
|
|
- run: bash packages/installation-tests/installation-tests.sh
|
2020-05-05 01:15:51 +03:00
|
|
|
|
|
|
|
headful_linux:
|
|
|
|
name: "Headful Linux"
|
2020-07-18 20:50:58 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
browser: [chromium, firefox, webkit]
|
2020-05-05 01:15:51 +03:00
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 10
|
2020-07-31 03:47:39 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-05-05 01:15:51 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2020-06-24 03:18:29 +03:00
|
|
|
- run: mkdir -p coredumps
|
|
|
|
# Set core dump file name pattern
|
|
|
|
- run: sudo bash -c 'echo "$(pwd -P)/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_pattern'
|
2020-05-05 01:15:51 +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.
|
2020-06-24 03:18:29 +03:00
|
|
|
# Enable core dumps in the subshell.
|
2020-08-29 18:27:32 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npx test-runner test/ --jobs=1 --forbid-only --timeout=30000 --global-timeout=5400000 --retries=3 --reporter=dot,json"
|
2020-07-16 21:18:38 +03:00
|
|
|
if: ${{ always() }}
|
|
|
|
env:
|
2020-07-18 20:50:58 +03:00
|
|
|
BROWSER: ${{ matrix.browser }}
|
2020-07-16 21:18:38 +03:00
|
|
|
HEADLESS: "false"
|
2020-08-26 01:46:42 +03:00
|
|
|
PWRUNNER_JSON_REPORT: "test-results/report.json"
|
2020-08-13 19:33:43 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
2020-08-26 01:46:42 +03:00
|
|
|
if: ${{ always() }}
|
2020-08-13 19:33:43 +03:00
|
|
|
with:
|
2020-08-17 05:19:52 +03:00
|
|
|
name: headful-${{ matrix.browser }}-linux-test-results
|
|
|
|
path: test-results
|
2020-07-01 04:51:36 +03:00
|
|
|
|
2020-08-14 02:00:23 +03:00
|
|
|
wire_linux:
|
|
|
|
name: "Wire Linux"
|
2020-07-10 23:15:57 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
browser: [chromium, firefox, webkit]
|
2020-07-01 04:51:36 +03:00
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 10
|
2020-07-31 03:47:39 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-07-01 04:51:36 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2020-07-01 04:51:36 +03:00
|
|
|
- run: mkdir -p coredumps
|
|
|
|
# Set core dump file name pattern
|
|
|
|
- run: sudo bash -c 'echo "$(pwd -P)/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_pattern'
|
|
|
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
|
|
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
|
|
|
# Enable core dumps in the subshell.
|
2020-08-29 18:27:32 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npx test-runner test/ --jobs=1 --forbid-only --timeout=30000 --global-timeout=5400000 --retries=3 --reporter=dot,json"
|
2020-07-16 21:18:38 +03:00
|
|
|
env:
|
|
|
|
BROWSER: ${{ matrix.browser }}
|
2020-08-14 02:00:23 +03:00
|
|
|
PWWIRE: true
|
2020-08-26 01:46:42 +03:00
|
|
|
PWRUNNER_JSON_REPORT: "test-results/report.json"
|
2020-07-01 04:51:36 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
2020-08-26 01:46:42 +03:00
|
|
|
if: ${{ always() }}
|
2020-07-01 04:51:36 +03:00
|
|
|
with:
|
2020-08-17 05:19:52 +03:00
|
|
|
name: wire-${{ matrix.browser }}-linux-test-results
|
|
|
|
path: test-results
|
2020-08-28 23:50:06 +03:00
|
|
|
|
|
|
|
tracing_linux:
|
|
|
|
name: "Tracing Linux"
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
browser: [chromium, firefox, webkit]
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 10
|
|
|
|
- uses: microsoft/playwright-github-action@v1
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- run: mkdir -p coredumps
|
|
|
|
# Set core dump file name pattern
|
|
|
|
- run: sudo bash -c 'echo "$(pwd -P)/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_pattern'
|
|
|
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
|
|
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
|
|
|
# Enable core dumps in the subshell.
|
2020-09-24 14:38:01 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npx test-runner test/ --jobs=1 --forbid-only --timeout=60000 --global-timeout=5400000 --retries=3 --reporter=dot,json"
|
2020-08-28 23:50:06 +03:00
|
|
|
env:
|
|
|
|
BROWSER: ${{ matrix.browser }}
|
|
|
|
TRACING: true
|
|
|
|
PWRUNNER_JSON_REPORT: "test-results/report.json"
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: tracing-${{ matrix.browser }}-linux-test-results
|
|
|
|
path: test-results
|