Skip to content

Commit 0b89009

Browse files
committed
add github actions test workflow
1 parent 219930f commit 0b89009

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: test
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
services:
7+
postgres:
8+
image: postgres:16-alpine
9+
ports:
10+
- 5432:5432
11+
env:
12+
POSTGRES_USER: postgres
13+
POSTGRES_PASSWORD: postgres
14+
POSTGRES_DB: postgres
15+
options: >-
16+
--health-cmd "pg_isready -U postgres"
17+
--health-interval 5s
18+
--health-timeout 3s
19+
--health-retries 3
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
- run: npm install
26+
- run: npm test

0 commit comments

Comments
 (0)