File tree 6 files changed +339
-65
lines changed
6 files changed +339
-65
lines changed Original file line number Diff line number Diff line change 26
26
" ms-azuretools.vscode-docker" ,
27
27
" prisma.prisma" ,
28
28
" stkb.rewrap" ,
29
- " tamasfe.even-better-toml"
29
+ " tamasfe.even-better-toml" ,
30
+ " vitest.explorer"
30
31
]
31
32
}
32
33
},
Original file line number Diff line number Diff line change 93
93
run : pnpm prisma generate
94
94
- name : Check typescript types
95
95
run : pnpm tsc
96
+ vitest :
97
+ name : Run unit tests
98
+ runs-on : ubuntu-latest
99
+ steps :
100
+ - uses : actions/checkout@v4
101
+ - name : Setup pnpm
102
+ uses : pnpm/action-setup@v3
103
+ with :
104
+ version : 8
105
+ - uses : actions/setup-node@v4
106
+ with :
107
+ node-version : 20
108
+ cache : " pnpm"
109
+ cache-dependency-path : " webserver/pnpm-lock.yaml"
110
+ - name : Install dependencies
111
+ run : pnpm install --frozen-lockfile
112
+ - name : Generate Prisma client
113
+ run : pnpm prisma generate
114
+ - name : Run Vitest
115
+ run : pnpm vitest
Original file line number Diff line number Diff line change 14
14
"build" : " astro build" ,
15
15
"preview" : " astro preview" ,
16
16
"astro" : " astro" ,
17
- "test" : " pnpm run build && playwright test"
17
+ "test" : " vitest run && pnpm run build && playwright test"
18
18
},
19
19
"prisma" : {
20
20
"seed" : " node prisma/seed.mjs"
57
57
"@types/mdast" : " ^4.0.3" ,
58
58
"@types/n3" : " ^1.16.4" ,
59
59
"@types/node" : " ^20.11.28" ,
60
- "dotenv-cli" : " ^7.4.1"
60
+ "dotenv-cli" : " ^7.4.1" ,
61
+ "vitest" : " ^1.4.0"
61
62
}
62
63
}
You can’t perform that action at this time.
0 commit comments