forked from cloudflare/agents
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 972 Bytes
/
pullrequest.yml
File metadata and controls
40 lines (34 loc) · 972 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
29
30
31
32
33
34
35
36
37
38
39
40
name: Pull Request
on: pull_request
jobs:
check:
timeout-minutes: 10
strategy:
matrix:
os: [
ubuntu-24.04
# windows-latest,
# macos-latest,
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: 24
cache: "npm"
- name: Get Playwright version
id: playwright-version
run: echo "version=$(jq -r '.packages["node_modules/playwright"].version' package-lock.json)" >> $GITHUB_OUTPUT
- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}
- run: npm ci
- run: npm run build
- run: npm run check
- run: CI=true npm run test