Skip to content

test: upgrade Playwright #256

test: upgrade Playwright

test: upgrade Playwright #256

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
env:
SAUCE_USERNAME: pkozlowski
SAUCE_ACCESS_KEY: c5ea8b730bc9-378b-43e4-6e34-e66aa371
BROWSER_PROVIDER_READY_FILE: /tmp/sauce-connect-ready
LOGS_DIR: /tmp/logs
steps:
- uses: actions/checkout@v3
- run: mkdir -p $LOGS_DIR && ./scripts/sauce_connect_setup.sh
- uses: actions/setup-node@v3
with:
node-version: 16
- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn --frozen-lockfile
- run: npx playwright install-deps
- run: npx playwright install
- run: yarn ci && yarn scripts:test
- uses: codecov/codecov-action@v3
with:
file: coverage/lcov.info
flags: unit
- uses: codecov/codecov-action@v3
with:
file: coverage-e2e/lcov.info
flags: e2e
- uses: actions/upload-artifact@v3
with:
name: test-reports
path: test-reports
if: ${{ always() }}
- run: cat $LOGS_DIR/*
- run: ./scripts/sauce_connect_block.sh
- run: yarn saucelabs
- run: ./scripts/sauce_connect_teardown.sh
if: ${{ always() }}