Skip to content

initial commit

initial commit #1

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14.11-alpine
ports:
- 5432:5432
env:
POSTGRES_USER: admin123
POSTGRES_PASSWORD: admin123
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: npm install, build, and test
run: |
npm ci
npx prisma migrate dev
npm run test
env:
DATABASE_URL: postgresql://admin123:admin123@localhost:5432/test
CI: true