-
Notifications
You must be signed in to change notification settings - Fork 19
37 lines (37 loc) · 1.11 KB
/
playwright.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
name: Playwright tests
on: [push, pull_request]
jobs:
playwright-run:
runs-on: ubuntu-20.04
strategy:
matrix:
# the actual items in the array do not matter,
# just the number - to force CI to sping 3 copies
# of the current job in parallel
machines: [1]
# machines: [1, 2, 3, 4, 5, 6]
steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Checkout
uses: actions/checkout@v3
with:
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
fetch-depth: 0
- name: Install dependencies
uses: cypress-io/github-action@v5
with:
# just perform install
runTests: false
- name: Install Playwright
run: npx playwright install chromium --with-deps
- uses: mansagroup/nrwl-nx-action@v3
with:
targets: e2e-playwright
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30