2021-05-12 03:25:05 +03:00
|
|
|
name: "tests 2"
|
2020-02-13 00:52:06 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-04-22 05:20:19 +03:00
|
|
|
- release-*
|
2020-02-13 00:52:06 +03:00
|
|
|
pull_request:
|
2021-05-12 03:25:05 +03:00
|
|
|
paths-ignore:
|
|
|
|
- 'browser_patches/**'
|
2021-05-12 03:01:02 +03:00
|
|
|
types: [ labeled ]
|
2020-02-13 00:52:06 +03:00
|
|
|
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]
|
2021-05-12 03:01:02 +03:00
|
|
|
os: [ubuntu-18.04]
|
2020-07-29 21:36:38 +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
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2020-04-21 02:57:01 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2021-03-12 07:22:50 +03:00
|
|
|
- run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium
|
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.
|
2021-05-08 01:25:55 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run test -- --project=${{ matrix.browser }}"
|
2021-04-06 01:51:45 +03:00
|
|
|
- run: node tests/config/checkCoverage.js ${{ matrix.browser }}
|
2020-10-26 23:46:26 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
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:
|
2021-03-24 00:23:23 +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-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
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2020-04-21 02:57:01 +03:00
|
|
|
- run: npm ci
|
2021-05-04 02:52:54 +03:00
|
|
|
env:
|
2021-05-04 13:19:50 +03:00
|
|
|
DEBUG: extract-zip
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2021-03-12 07:22:50 +03:00
|
|
|
- run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium
|
2021-05-08 01:25:55 +03:00
|
|
|
- run: npm run test -- --project=${{ matrix.browser }}
|
2020-10-27 03:46:13 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
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
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
with:
|
2021-04-30 22:35:41 +03:00
|
|
|
node-version: 12
|
2020-04-21 02:57:01 +03:00
|
|
|
- run: npm ci
|
2021-05-04 02:52:54 +03:00
|
|
|
env:
|
2021-05-04 13:19:50 +03:00
|
|
|
DEBUG: extract-zip
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2021-03-12 07:22:50 +03:00
|
|
|
- run: node lib/cli/cli install-deps
|
2021-05-08 01:25:55 +03:00
|
|
|
- run: npm run test -- --project=${{ matrix.browser }}
|
2021-04-05 05:32:14 +03:00
|
|
|
shell: bash
|
2020-10-27 03:46:13 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
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:
|
2021-04-05 22:39:15 +03:00
|
|
|
runs-on: ubuntu-20.04
|
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:
|
|
|
|
- "^12.0.0"
|
|
|
|
- "^14.1.0" # pre 14.1, zip extraction was broken (https://github.com/microsoft/playwright/issues/1988)
|
2021-04-29 21:12:03 +03:00
|
|
|
timeout-minutes: 20
|
2020-04-02 21:25:03 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-04-02 21:25:03 +03:00
|
|
|
with:
|
2020-05-01 10:10:52 +03:00
|
|
|
node-version: ${{ matrix.node_version }}
|
2020-04-21 02:57:01 +03:00
|
|
|
- run: npm ci
|
2021-05-04 02:52:54 +03:00
|
|
|
env:
|
2021-05-04 13:19:50 +03:00
|
|
|
DEBUG: extract-zip
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2021-03-12 07:22:50 +03:00
|
|
|
- run: node lib/cli/cli install-deps
|
2021-04-17 01:19:44 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- 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]
|
2021-04-05 22:39:15 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2020-05-05 01:15:51 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-05-05 01:15:51 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2020-05-05 01:15:51 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2021-03-12 07:22:50 +03:00
|
|
|
- run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium
|
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.
|
2021-05-11 16:40:06 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run test -- --project=${{ matrix.browser }} --headed"
|
2020-07-16 21:18:38 +03:00
|
|
|
if: ${{ always() }}
|
2020-10-27 03:46:13 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
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]
|
2021-04-05 22:39:15 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2020-07-01 04:51:36 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-07-01 04:51:36 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2020-07-01 04:51:36 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2021-03-12 07:22:50 +03:00
|
|
|
- run: node lib/cli/cli install-deps chromium
|
2020-07-01 04:51:36 +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.
|
2021-05-11 16:40:06 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run ctest -- --mode=${{ matrix.mode }}"
|
2020-10-27 03:46:13 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
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]
|
2021-04-05 22:39:15 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2020-08-28 23:50:06 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-08-28 23:50:06 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2020-08-28 23:50:06 +03:00
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
2021-03-12 07:22:50 +03:00
|
|
|
- run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium
|
2020-08-28 23:50:06 +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.
|
2021-05-11 16:40:06 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run test -- --project=${{ matrix.browser }} --video"
|
2020-10-27 03:46:13 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
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
|
2021-01-06 01:04:47 +03:00
|
|
|
|
2020-12-14 01:13:50 +03:00
|
|
|
test_android:
|
2021-04-05 05:32:14 +03:00
|
|
|
name: Android Emulator (shard ${{ matrix.shard }})
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
shard: [1, 2]
|
2020-12-14 01:13:50 +03:00
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-12-14 01:13:50 +03:00
|
|
|
with:
|
|
|
|
node-version: 14
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
2021-03-12 07:22:50 +03:00
|
|
|
- run: node lib/cli/cli install-deps
|
2020-12-14 01:13:50 +03:00
|
|
|
- name: Create Android Emulator
|
|
|
|
run: utils/avd_recreate.sh
|
|
|
|
- name: Start Android Emulator
|
|
|
|
run: utils/avd_start.sh
|
2021-04-02 02:35:26 +03:00
|
|
|
- name: Run tests
|
2021-04-07 02:09:54 +03:00
|
|
|
run: npm run atest -- --shard=${{ matrix.shard }}/2
|
2020-12-14 01:13:50 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
2020-12-14 01:13:50 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: android-test-results
|
|
|
|
path: test-results
|
2021-03-10 06:19:21 +03:00
|
|
|
|
2021-03-18 03:24:01 +03:00
|
|
|
chrome_stable_linux:
|
2021-03-24 08:18:49 +03:00
|
|
|
name: "Chrome Stable (Linux)"
|
2021-04-05 22:39:15 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2021-03-10 06:19:21 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2021-03-10 06:19:21 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2021-03-10 06:19:21 +03:00
|
|
|
- name: Install Chrome Stable
|
|
|
|
run: sudo apt install google-chrome-stable
|
|
|
|
- run: npm ci
|
2021-03-15 18:07:57 +03:00
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
2021-03-10 06:19:21 +03:00
|
|
|
- run: npm run build
|
2021-03-12 07:22:50 +03:00
|
|
|
- run: node lib/cli/cli install-deps chromium
|
2021-03-15 18:07:57 +03:00
|
|
|
# This only created problems, should we move ffmpeg back into npm?
|
|
|
|
- run: node lib/cli/cli install ffmpeg
|
2021-03-10 06:19:21 +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.
|
2021-05-11 16:40:06 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run ctest -- --channel=chrome"
|
2021-04-06 09:15:06 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
2021-03-10 06:19:21 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
2021-03-18 03:24:01 +03:00
|
|
|
name: chrome-stable-linux-test-results
|
2021-03-10 06:19:21 +03:00
|
|
|
path: test-results
|
2021-03-16 02:00:52 +03:00
|
|
|
|
2021-03-18 03:24:01 +03:00
|
|
|
chrome_stable_win:
|
|
|
|
name: "Chrome Stable (Win)"
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Install Media Pack
|
|
|
|
shell: powershell
|
|
|
|
run: Install-WindowsFeature Server-Media-Foundation
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2021-03-18 03:24:01 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2021-03-18 03:24:01 +03:00
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
# This only created problems, should we move ffmpeg back into npm?
|
|
|
|
- run: node lib/cli/cli install ffmpeg
|
2021-05-11 16:40:06 +03:00
|
|
|
- run: npm run ctest -- --channel=chrome
|
2021-03-18 03:24:01 +03:00
|
|
|
shell: bash
|
2021-04-06 09:15:06 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
2021-04-06 09:15:06 +03:00
|
|
|
shell: bash
|
2021-03-18 03:24:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: chrome-stable-win-test-results
|
|
|
|
path: test-results
|
|
|
|
|
|
|
|
chrome_stable_mac:
|
|
|
|
name: "Chrome Stable (Mac)"
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2021-03-18 03:24:01 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2021-03-18 03:24:01 +03:00
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
# This only created problems, should we move ffmpeg back into npm?
|
|
|
|
- run: node lib/cli/cli install ffmpeg
|
2021-05-11 16:40:06 +03:00
|
|
|
- run: npm run ctest -- --channel=chrome
|
2021-04-06 09:15:06 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
2021-03-18 03:24:01 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: chrome-stable-mac-test-results
|
|
|
|
path: test-results
|
|
|
|
|
2021-04-20 07:26:33 +03:00
|
|
|
firefox_stable_linux:
|
|
|
|
name: "Firefox Stable (Linux)"
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2021-04-20 07:26:33 +03:00
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
- run: node lib/cli/cli install-deps firefox
|
|
|
|
- run: node lib/cli/cli install ffmpeg firefox-stable chromium
|
|
|
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
|
|
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
2021-05-11 16:40:06 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run ftest -- --channel=firefox-stable"
|
2021-04-20 07:26:33 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: firefox-stable-linux-test-results
|
|
|
|
path: test-results
|
|
|
|
|
|
|
|
firefox_stable_win:
|
|
|
|
name: "Firefox Stable (Win)"
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Install Media Pack
|
|
|
|
shell: powershell
|
|
|
|
run: Install-WindowsFeature Server-Media-Foundation
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2021-04-20 07:26:33 +03:00
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
- run: node lib/cli/cli install ffmpeg firefox-stable chromium
|
2021-05-11 16:40:06 +03:00
|
|
|
- run: npm run ftest -- --channel=firefox-stable
|
2021-04-20 07:26:33 +03:00
|
|
|
shell: bash
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
shell: bash
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: firefox-stable-win-test-results
|
|
|
|
path: test-results
|
|
|
|
|
|
|
|
firefox_stable_mac:
|
|
|
|
name: "Firefox Stable (Mac)"
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2021-04-20 07:26:33 +03:00
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
- run: node lib/cli/cli install ffmpeg firefox-stable chromium
|
2021-05-11 16:40:06 +03:00
|
|
|
- run: npm run ftest -- --channel=firefox-stable
|
2021-04-20 07:26:33 +03:00
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: firefox-stable-mac-test-results
|
|
|
|
path: test-results
|
|
|
|
|
2021-03-18 03:24:01 +03:00
|
|
|
edge_stable_win:
|
2021-03-16 02:00:52 +03:00
|
|
|
name: "Edge Stable (Win)"
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Install Media Pack
|
|
|
|
shell: powershell
|
|
|
|
run: Install-WindowsFeature Server-Media-Foundation
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2021-03-16 02:00:52 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2021-03-16 02:00:52 +03:00
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
# This only created problems, should we move ffmpeg back into npm?
|
|
|
|
- run: node lib/cli/cli install ffmpeg
|
2021-05-11 16:40:06 +03:00
|
|
|
- run: npm run ctest -- --channel=msedge
|
2021-03-16 02:00:52 +03:00
|
|
|
shell: bash
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
2021-03-18 03:24:01 +03:00
|
|
|
name: edge-stable-win-test-results
|
2021-03-16 02:00:52 +03:00
|
|
|
path: test-results
|
2021-04-08 20:26:26 +03:00
|
|
|
|
|
|
|
test_electron:
|
|
|
|
name: "Electron Linux"
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2021-04-08 20:26:26 +03:00
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- run: node lib/cli/cli install-deps chromium
|
|
|
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
|
|
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
2021-04-19 23:02:06 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run etest"
|
2021-04-08 20:26:26 +03:00
|
|
|
- run: node tests/config/checkCoverage.js electron
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
2021-04-19 18:39:10 +03:00
|
|
|
if: always()
|
2021-04-08 20:26:26 +03:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: electron-linux-test-results
|
|
|
|
path: test-results
|
2021-05-12 03:01:02 +03:00
|
|
|
|
|
|
|
chrome_beta_linux:
|
|
|
|
name: "Chrome Beta (Linux)"
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: ./utils/install-chrome-beta/reinstall_linux.sh
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
- run: node lib/cli/cli install-deps chromium
|
|
|
|
- run: node lib/cli/cli install ffmpeg
|
|
|
|
# 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 --server-args="-screen 0 1280x960x24" -- bash -c "npm run ctest -- --channel=chrome-beta"
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: chrome-beta-linux-test-results
|
|
|
|
path: test-results
|
|
|
|
|
|
|
|
chrome_beta_win:
|
|
|
|
name: "Chrome Beta (Win)"
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Install Media Pack
|
|
|
|
shell: powershell
|
|
|
|
run: Install-WindowsFeature Server-Media-Foundation
|
|
|
|
- name: Install Chrome Beta
|
|
|
|
shell: powershell
|
|
|
|
run: choco install -y googlechromebeta --pre --force
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
- run: node lib/cli/cli install ffmpeg
|
|
|
|
- run: npm run ctest -- --channel=chrome-beta
|
|
|
|
shell: bash
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
shell: bash
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: chrome-beta-win-test-results
|
|
|
|
path: test-results
|
|
|
|
|
|
|
|
chrome_beta_mac:
|
|
|
|
name: "Chrome Beta (Mac)"
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: ./utils/install-chrome-beta/reinstall_mac.sh
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
- run: node lib/cli/cli install ffmpeg
|
|
|
|
- run: npm run ctest -- --channel=chrome-beta
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: chrome-beta-mac-test-results
|
|
|
|
path: test-results
|
|
|
|
|