2021-05-12 03:25:05 +03:00
|
|
|
name: "tests 1"
|
2021-05-12 03:01:02 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- release-*
|
|
|
|
pull_request:
|
2021-05-12 03:25:05 +03:00
|
|
|
paths-ignore:
|
|
|
|
- 'browser_patches/**'
|
2021-06-01 23:55:48 +03:00
|
|
|
- 'docs/**'
|
2021-05-12 03:01:02 +03:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- release-*
|
|
|
|
|
|
|
|
env:
|
|
|
|
# Force terminal colors. @see https://www.npmjs.com/package/colors
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
FLAKINESS_CONNECTION_STRING: ${{ secrets.FLAKINESS_CONNECTION_STRING }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test_linux:
|
|
|
|
name: ${{ matrix.os }} (${{ matrix.browser }})
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
browser: [chromium, firefox, webkit]
|
|
|
|
os: [ubuntu-20.04]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
- run: npm ci
|
2021-05-21 01:47:22 +03:00
|
|
|
env:
|
|
|
|
DEBUG: pw:install
|
2021-05-12 03:01:02 +03:00
|
|
|
- run: npm run build
|
|
|
|
- run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium
|
|
|
|
# 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 test -- --project=${{ matrix.browser }}"
|
|
|
|
- run: node tests/config/checkCoverage.js ${{ matrix.browser }}
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: ${{ matrix.browser }}-${{ matrix.os }}-test-results
|
|
|
|
path: test-results
|
|
|
|
|