Skip to content

Commit 0d20ec1

Browse files
ci: run the test suite on pull requests
Tests only ran inside the publish job on push to master, so a broken suite was first seen after merge and blocked the release. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 30e1135 commit 0d20ec1

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v5
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Setup test dependencies
27+
run: |
28+
cd test/support/express3 && npm install
29+
cd ../express4 && npm install
30+
31+
- name: Run tests
32+
run: npm test

0 commit comments

Comments
 (0)