-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.21 KB
/
Copy pathci.yml
File metadata and controls
41 lines (41 loc) · 1.21 KB
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
name: Forms API checks
on: [push, pull_request]
jobs:
verify:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_USER: forms
POSTGRES_PASSWORD: forms_ci
POSTGRES_DB: forms_test
ports: ['5432:5432']
options: >-
--health-cmd "pg_isready -U forms -d forms_test"
--health-interval 5s --health-timeout 3s --health-retries 10
env:
DATABASE_URL: postgresql://forms:forms_ci@localhost:5432/forms_test?schema=forms
TEST_DATABASE_URL: postgresql://forms:forms_ci@localhost:5432/forms_test?schema=forms
steps:
- uses: actions/checkout@v4
- name: Select project Node and install pnpm
shell: bash
run: |
source "$NVM_DIR/nvm.sh"
nvm install
nvm use
npm install --global pnpm@11.21.0
- name: Install, lint, build, and test
shell: bash
run: |
source "$NVM_DIR/nvm.sh"
nvm use
pnpm install --frozen-lockfile
pnpm prisma:validate
pnpm lint
pnpm build
pnpm typecheck
pnpm test
pnpm migrate:deploy
pnpm test:integration