Skip to content

docs: add in .env setup #25

docs: add in .env setup

docs: add in .env setup #25

Workflow file for this run

name: Node.js CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
container: node:10.18-jessie
services:
postgres:
image: postgres:13-alpine
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: thestack
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
--health-retries 5
strategy:
matrix:
node-version: [16.x]
env:
# these could also come from env variables of the actions if you wish for them to
DATABASE_URL: 'postgresql://postgres:postgres@postgres:5432/tillwhen?schema=public'
SESSION_SECRET: 'examplesessionsecret'
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
with:
version: 8.3.1
- run: pnpm install --frozen-lockfile
# TODO: Enable after you have defined migrations in your codebase using prisma
# - run: pnpx prisma migrate deploy
- run: pnpm test:ci