We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 440877e commit 98f9006Copy full SHA for 98f9006
.github/workflows/unit.yml
@@ -0,0 +1,32 @@
1
+name: Unit Tests
2
+
3
+on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches:
7
+ - main
8
+ pull_request:
9
10
11
12
+jobs:
13
+ install-and-test:
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ matrix:
17
+ node-version:
18
+ - 20
19
+ steps:
20
+ - name: Checkout repository
21
+ uses: actions/checkout@v4
22
23
+ - name: Set up Node.js ${{ matrix.node-version }}
24
+ uses: actions/setup-node@v4
25
+ with:
26
+ node-version: ${{ matrix.node-version }}
27
28
+ - name: Install package and dependencies
29
+ run: npm install
30
31
+ - name: Run unit tests
32
+ run: npm run test:unit
0 commit comments