Skip to content

Commit

Permalink
chore: test manual workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lucgagan committed Nov 15, 2023
1 parent a91884b commit 7a088e4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Playwright Tests
on:
workflow_dispatch:
inputs:
repeat-each:
default: 5
type: number
description: The number of times to repeat the test
test-path:
required: true
type: string
description: A relative path to the test file under test
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Set env variables
run: |
echo "NUMBER_OF_RUNS=" >> "$GITHUB_ENV"
echo "TEST_PATH=${{ github.event.inputs.test-path }}" >> "$GITHUB_ENV"
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test "${{ github.event.inputs.test-path }}" --workers=1 --repeat-each=${{ inputs.repeat-each }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

0 comments on commit 7a088e4

Please sign in to comment.