Skip to content

Commit 7171ecf

Browse files
committed
ci: run tests in ci
1 parent 0e6737c commit 7171ecf

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy VitePress site to Pages
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
8+
jobs:
9+
# Build job
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- uses: pnpm/action-setup@v4
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: pnpm
23+
- name: Setup Pages
24+
uses: actions/configure-pages@v4
25+
- name: Install dependencies
26+
run: pnpm install
27+
- name: Install playwright browsers
28+
run: npx playwright install --with-deps
29+
- name: Run tests
30+
run: pnpm vitest

0 commit comments

Comments
 (0)