[CSR-1646] chore: Update rerun examples to use our GitHub Action Template #99
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: demo.playwright.reporter | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
basicTests: | |
strategy: | |
fail-fast: false | |
matrix: | |
# run 3 copies of the current job in parallel | |
shard: [1, 2, 3] | |
name: "Playwright Tests - Reporter" | |
timeout-minutes: 60 | |
runs-on: ubuntu-22.04 | |
container: mcr.microsoft.com/playwright:1.46.1 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
# https://github.com/actions/runner-images/issues/6775 | |
- run: | | |
echo "$GITHUB_WORKSPACE" | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18.x" | |
- name: Install dependencies | |
run: | | |
npm ci | |
npx playwright install chrome | |
- name: Run Basic Tests | |
continue-on-error: false | |
working-directory: ./basic | |
env: | |
CURRENTS_PROJECT_ID: bnsqNa | |
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }} | |
CURRENTS_CI_BUILD_ID: reporter-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }} | |
run: | | |
npx playwright test --shard=${{ matrix.shard }}/${{ strategy.job-total }} --config ./playwright.config.reporter.ts |