Skip to content

Feat: add symon template and fix header ui #12

Feat: add symon template and fix header ui

Feat: add symon template and fix header ui #12

Workflow file for this run

name: Test
on:
workflow_dispatch:
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
# Label of the container job
run-test:
# You must use a Linux environment when using service containers or container jobs
runs-on: ubuntu-latest
# Service containers to run with `runner-job`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: s3cr3t
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Static Analysis
run: npm run static-analysis
- name: Generate prisma client
run: npm run prisma:generate
- name: Copy env
run: cp .env.local.example .env.local && cp .env.local.example .env
- name: Build
run: npm run vercel-build
- name: Test
run: npm run test