-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (40 loc) · 984 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on:
- pull_request
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
steps:
- name: Checkout
uses: actions/[email protected]
- name: Use Node 22
uses: actions/setup-node@v4
with:
node-version: "22.x"
- name: Cache node modules
uses: actions/[email protected]
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }}
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test
run: node scripts/generate-keys.js && npm run test
env:
PORT: 12000
PGHOST: 127.0.0.1
PGUSER: postgres
PGPASSWORD: postgres
PGPORT: 5432
PGSSL: false