We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a35e45 commit 2f8288eCopy full SHA for 2f8288e
.github/workflows/test.yml
@@ -0,0 +1,32 @@
1
+name: Tests
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+jobs:
7
+ test:
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ node: [18, 20]
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v3
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v3
17
+ with:
18
+ node-version: ${{ matrix.node }}
19
+ - name: Cache npm dependencies
20
+ uses: actions/cache@v3
21
+ id: npm-cache
22
23
+ path: ~/.npm
24
+ key: ${{ runner.os }}-node-${{ matrix.node }}-npm-${{ hashFiles('**/package-lock.json') }}
25
+ restore-keys: |
26
+ ${{ runner.os }}-node-${{ matrix.node }}-npm-
27
+ - name: Install npm dependencies
28
+ run: npm ci
29
+ - name: Run Vitest tests
30
+ run: npm run test
31
+ env:
32
+ CI: true
0 commit comments