Skip to content

refactor: admin UI module #290

refactor: admin UI module

refactor: admin UI module #290

Workflow file for this run

name: test
on:
workflow_call:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
container:
image: node:22
services:
postgres:
image: postgres:14
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install psql
run: |
apt-get update
apt-get install -y postgresql-client
- name: Cache node modules
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Check Types
run: npm run check-types
- name: Tests
run: npm run test
env:
TEST_DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres