Skip to content

Commit 3112a1f

Browse files
committed
Run the unit tests in CI
1 parent 0495b42 commit 3112a1f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/pull-requests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Pull requests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
unit-test:
8+
runs-on: ubuntu-latest
9+
defaults:
10+
run:
11+
working-directory: ./core
12+
13+
strategy:
14+
matrix:
15+
node:
16+
- "current"
17+
- "lts/*"
18+
19+
name: Run unit tests on Node ${{ matrix.node }}
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node }}
29+
30+
- name: Install Dependencies
31+
run: npm install
32+
33+
- name: Run unit tests
34+
run: npm test

0 commit comments

Comments
 (0)