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-10-27 03:46:13 +03:00
|
|
|
FLAKINESS_CONNECTION_STRING: ${{ secrets.FLAKINESS_CONNECTION_STRING }}
|
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-10-13 22:17:23 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npx folio test/ --workers=1 --forbid-only --global-timeout=5400000 --retries=3 --reporter=dot,json && npm run coverage"
|
2020-07-16 02:52:41 +03:00
|
|
|
env:
|
|
|
|
BROWSER: ${{ matrix.browser }}
|
2020-10-12 19:16:02 +03:00
|
|
|
FOLIO_JSON_OUTPUT_NAME: "test-results/report.json"
|
2020-10-26 23:46:26 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2020-10-27 03:46:13 +03:00
|
|
|
if: always() && github.ref == 'refs/heads/master'
|
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:
|
2020-10-19 20:02:35 +03:00
|
|
|
name: ${{ matrix.os }} (${{ matrix.browser }})
|
2020-07-10 23:15:57 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-10-19 20:02:35 +03:00
|
|
|
os: [macos-10.15, macos-11.0]
|
2020-07-10 23:15:57 +03:00
|
|
|
browser: [chromium, firefox, webkit]
|
2020-09-22 22:52:39 +03:00
|
|
|
shard: ['1', '2']
|
2020-10-19 20:02:35 +03:00
|
|
|
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-10-13 22:17:23 +03:00
|
|
|
- run: npx folio test/ --workers=1 --forbid-only --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-10-12 19:16:02 +03:00
|
|
|
FOLIO_JSON_OUTPUT_NAME: "test-results/report.json"
|
2020-10-27 03:46:13 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always() && github.ref == 'refs/heads/master'
|
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-10-19 20:02:35 +03:00
|
|
|
name: ${{ matrix.browser }}-${{ matrix.os }}-test-results
|
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-10-13 22:17:23 +03:00
|
|
|
- run: npx folio test/ --workers=1 --forbid-only --global-timeout=5400000 --retries=3 --reporter=dot,json
|
2020-07-16 02:52:41 +03:00
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
BROWSER: ${{ matrix.browser }}
|
2020-10-12 19:16:02 +03:00
|
|
|
FOLIO_JSON_OUTPUT_NAME: "test-results/report.json"
|
2020-10-27 03:46:13 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always() && github.ref == 'refs/heads/master'
|
2020-11-12 20:30:09 +03:00
|
|
|
shell: bash
|
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-10-13 22:17:23 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npx folio test/ --workers=1 --forbid-only --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-10-27 23:14:27 +03:00
|
|
|
HEADFUL: 1
|
2020-10-12 19:16:02 +03:00
|
|
|
FOLIO_JSON_OUTPUT_NAME: "test-results/report.json"
|
2020-10-27 03:46:13 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always() && github.ref == 'refs/heads/master'
|
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-11-21 02:19:39 +03:00
|
|
|
transport_linux:
|
|
|
|
name: "Transport"
|
2020-07-10 23:15:57 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-11-21 02:19:39 +03:00
|
|
|
mode: [driver, service]
|
|
|
|
runs-on: ubuntu-latest
|
2020-07-01 04:51:36 +03:00
|
|
|
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-10-13 22:17:23 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npx folio test/ --workers=1 --forbid-only --global-timeout=5400000 --retries=3 --reporter=dot,json"
|
2020-07-16 21:18:38 +03:00
|
|
|
env:
|
2020-11-21 02:19:39 +03:00
|
|
|
BROWSER: "chromium"
|
|
|
|
PWMODE: "${{ matrix.mode }}"
|
2020-10-12 19:16:02 +03:00
|
|
|
FOLIO_JSON_OUTPUT_NAME: "test-results/report.json"
|
2020-10-27 03:46:13 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always() && github.ref == 'refs/heads/master'
|
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-11-21 02:19:39 +03:00
|
|
|
name: mode-${{ matrix.mode }}-linux-test-results
|
2020-08-17 05:19:52 +03:00
|
|
|
path: test-results
|
2020-08-28 23:50:06 +03:00
|
|
|
|
2020-10-13 23:18:36 +03:00
|
|
|
video_linux:
|
|
|
|
name: "Video Linux"
|
2020-08-28 23:50:06 +03:00
|
|
|
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-10-13 23:18:36 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npx folio test/ --workers=1 --forbid-only --timeout=60000 --global-timeout=5400000 --retries=3 --reporter=dot,json -p video"
|
2020-08-28 23:50:06 +03:00
|
|
|
env:
|
|
|
|
BROWSER: ${{ matrix.browser }}
|
2020-10-12 19:16:02 +03:00
|
|
|
FOLIO_JSON_OUTPUT_NAME: "test-results/report.json"
|
2020-10-27 03:46:13 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always() && github.ref == 'refs/heads/master'
|
2020-08-28 23:50:06 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
2020-10-13 23:18:36 +03:00
|
|
|
name: video-${{ matrix.browser }}-linux-test-results
|
2020-08-28 23:50:06 +03:00
|
|
|
path: test-results
|
2020-12-14 01:13:50 +03:00
|
|
|
test_android:
|
2020-12-14 09:33:00 +03:00
|
|
|
name: Android Emulator
|
2020-12-14 01:13:50 +03:00
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 14
|
|
|
|
- uses: microsoft/playwright-github-action@v1
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- name: Create Android Emulator
|
|
|
|
run: utils/avd_recreate.sh
|
|
|
|
- name: Start Android Emulator
|
|
|
|
run: utils/avd_start.sh
|
2020-12-14 10:20:13 +03:00
|
|
|
- run: npx folio test/android -p browserName=chromium --workers=1 --forbid-only --timeout=60000 --global-timeout=5400000 --retries=3 --reporter=dot,json
|
2020-12-14 01:13:50 +03:00
|
|
|
env:
|
|
|
|
FOLIO_JSON_OUTPUT_NAME: "test-results/report.json"
|
|
|
|
PW_ANDROID_TESTS: 1
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always() && github.ref == 'refs/heads/master'
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: android-test-results
|
|
|
|
path: test-results
|