Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldis committed Feb 10, 2024
1 parent 0a0d5b3 commit 8b604e0
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/full-parallel-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: demo.playwright.pwc.prod
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,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
]
name: "PW tests"
timeout-minutes: 60
runs-on: ubuntu-22.04
container: mcr.microsoft.com/playwright:latest
env:
TESTGROUP: basic
steps:
- uses: actions/checkout@v3
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@v3
with:
node-version: "18.x"

- name: Install dependencies
run: |
npm ci
npx playwright install chrome
npx playwright install
- name: Run Basic Tests
continue-on-error: false
working-directory: ${{ env.TESTGROUP }}
env:
# DEBUG: currents*

CURRENTS_PROJECT_ID: RdXO5y
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
run: |
npx pwc --shard=${{ matrix.shard }}/${{ strategy.job-total }} --ci-build-id "${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}"

0 comments on commit 8b604e0

Please sign in to comment.