Skip to content

UI redesign

UI redesign #10

Workflow file for this run

name: Build & Test
on:
pull_request:
branches: [ '*' ]
workflow_call:
workflow_dispatch:
jobs:
test-run:
runs-on: ubuntu-latest
services:
postgres:
image: "postgres:15"
ports:
- "5432:5432"
env:
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpwd
POSTGRES_DB: hero
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
PRISMA_DB_URL: postgresql://testuser:testpwd@localhost:5432/hero
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm install
- name: Build Typescript app
run: npm run build
- name: Build database
run: npx prisma migrate deploy
- name: Test Docker build
run: docker compose build
# TODO: Add tests here. Requires a mock database.