2021-06-02 04:45:45 +03:00
|
|
|
name: "tests 3"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
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:
|
|
|
|
video_linux:
|
|
|
|
name: "Video Linux"
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
browser: [chromium, firefox, webkit]
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
DEBUG: pw:install
|
2021-08-07 13:53:33 +03:00
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
2021-06-02 04:45:45 +03:00
|
|
|
- run: npm run build
|
2021-08-07 13:53:33 +03:00
|
|
|
- run: node lib/cli/cli install --with-deps ${{ matrix.browser }} chromium
|
2021-06-04 01:28:57 +03:00
|
|
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=${{ matrix.browser }}
|
2021-06-02 04:45:45 +03:00
|
|
|
env:
|
|
|
|
PWTEST_VIDEO: 1
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: video-${{ matrix.browser }}-linux-test-results
|
|
|
|
path: test-results
|
|
|
|
|
|
|
|
test_android:
|
|
|
|
name: Android Emulator (shard ${{ matrix.shard }})
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
shard: [1, 2]
|
2021-08-31 21:03:22 +03:00
|
|
|
runs-on: macos-11
|
2021-06-02 04:45:45 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 14
|
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
DEBUG: pw:install
|
|
|
|
- run: npm run build
|
|
|
|
- run: node lib/cli/cli install-deps
|
|
|
|
- name: Create Android Emulator
|
|
|
|
run: utils/avd_recreate.sh
|
|
|
|
- name: Start Android Emulator
|
|
|
|
run: utils/avd_start.sh
|
|
|
|
- name: Run tests
|
|
|
|
run: npm run atest -- --shard=${{ matrix.shard }}/2
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: android-test-results
|
|
|
|
path: test-results
|
|
|
|
|