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.
2 parents 32a2acb + 8995fb8 commit 4037260Copy full SHA for 4037260
.github/workflows/test.yml
@@ -0,0 +1,26 @@
1
+name: Run Vitest before PR
2
+
3
+on:
4
+ pull_request:
5
+ branches: ["main", "dev"]
6
7
+jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: 20.11.0 # Change this to your preferred Node.js version
19
+ cache: npm # Change to yarn or pnpm if you use those
20
21
+ - name: Install dependencies
22
+ run: npm ci # Change to yarn or pnpm if applicable
23
24
+ - name: Run Vitest tests
25
+ run: npm run test # Ensure this script runs all tests
26
0 commit comments