Skip to content

Home

Home #34

Workflow file for this run

name: Sveltekit / Postgres CI/CD
on:
push:
branches:
- "*"
pull_request:
branches:
[main]
jobs:
Unit-Test-Actions:
runs-on: ubuntu-latest
services:
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_USER: "user_good"
POSTGRES_PASSWORD: "pass_good"
POSTGRES_DB: "default"
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
POSTGRES_USER: "user_good"
POSTGRES_PASSWORD: "pass_good"
POSTGRES_DB: "default"
POSTGRES_HOST: "localhost" # No need to change
POSTGRES_PORT: "5432" # No need to change
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: make install
- run: make cypher
- run: make migrations
- run: make test
- run: make lint