Skip to content

Commit 2f720ed

Browse files
committed
init tests
1 parent 77410e3 commit 2f720ed

File tree

16 files changed

+1677
-4
lines changed

16 files changed

+1677
-4
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
pull_request:
7+
branches: [master, main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Run tests
26+
run: npm run test:run
27+
env:
28+
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
29+
JWT_SECRET: test-jwt-secret-for-ci

0 commit comments

Comments
 (0)