-
-
Notifications
You must be signed in to change notification settings - Fork 4
28 lines (26 loc) · 627 Bytes
/
example.yaml
File metadata and controls
28 lines (26 loc) · 627 Bytes
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
name: example
on:
push:
pull_request:
branches: [main, beta]
schedule:
# run daily at 00:00
- cron: 0 0 * * *
jobs:
examples:
strategy:
matrix:
os: [ubuntu-22.04, windows-latest]
node-version: [18, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npm run example
# run example second time with cache
- run: npm run example