forked from currents-dev/playwright-gh-actions-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.14 KB
/
argos-example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: demo.playwright.pwc-p.argos
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
basicTests:
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3]
name: "PW tests"
timeout-minutes: 60
runs-on: ubuntu-22.04
container: mcr.microsoft.com/playwright:v1.49.0-jammy
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: "20.x"
- name: Install dependencies
run: |
npm ci
npx playwright install chrome
- name: Run Argos
working-directory: ./argos
env:
ARGOS_PARALLEL: 1
ARGOS_PARALLEL_TOTAL: -1
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
CURRENTS_PROJECT_ID: bnsqNa
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
run: |
npx pwc-p