-
Notifications
You must be signed in to change notification settings - Fork 29
33 lines (33 loc) · 946 Bytes
/
pull-request.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
name: Test pull request
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
jobs:
test-node:
name: Node
runs-on: ubuntu-latest
# Run only on non-merged non-draft mergeable pull requests
if: |
(
!github.event.pull_request.draft
&& !github.event.pull_request.merged
&& github.event.pull_request.merge_commit_sha != null
)
steps:
- name: Check out merge commit of pull request
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
submodules: true
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
- run: npm run test:types
- run: npm run test:unit
- run: npm run test:wpt:node
- run: npm run test:bundlers