-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1006 Bytes
/
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
38
39
40
41
name: Playwright Tests
on:
workflow_dispatch:
pull_request:
jobs:
test:
name: Test Playwright
timeout-minutes: 60
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
#node-version: "lts/*"
node-version: 20
cache: "npm"
- name: Restore cache
uses: actions/cache@v4
with:
path: |
public
.cache
key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }}
restore-keys: |
${{ runner.os }}-gatsby-build-
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install chromium
- name: Build with Gatsby
env:
GITHUB_TOKEN: ${{ secrets.BUILD_GITHUB_TOKEN }}
run: npm run build
- name: Run Playwright tests
run: npx playwright test