Skip to content

Commit fcfb6c1

Browse files
committed
add test workflow
1 parent 0547501 commit fcfb6c1

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test Workflow
2+
3+
on:
4+
# push:
5+
# branches: [main]
6+
# pull_request:
7+
# branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v5
16+
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v5
19+
with:
20+
version: 10
21+
22+
- name: Use Node.js
23+
uses: actions/setup-node@v5
24+
with:
25+
node-version: 24.14.0
26+
cache: 'pnpm'
27+
28+
- name: Install Dependencies
29+
run: pnpm i
30+
31+
- name: Generate SvelteKit config
32+
run: pnpm svelte-kit sync
33+
34+
- name: Update and Test database
35+
env:
36+
DB_URL: file:database/local.db
37+
DB_VISITS_URL: file:database/visits.db
38+
run: pnpm db:update

0 commit comments

Comments
 (0)