Skip to content

Fix Supervisor build: ARG BUILD_FROM must be global (v0.1.1) #4

Fix Supervisor build: ARG BUILD_FROM must be global (v0.1.1)

Fix Supervisor build: ARG BUILD_FROM must be global (v0.1.1) #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
webapp:
runs-on: ubuntu-latest
defaults:
run:
working-directory: timeclock/webapp
services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: timeclock
ports:
- 55432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s
--health-timeout 5s
--health-retries 10
env:
# Enables the real-Postgres audit-immutability proof in tests.
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:55432/timeclock
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
# pg_dump/pg_restore for the P12 backup-verify test.
- run: sudo apt-get update -qq && sudo apt-get install -y -qq postgresql-client
- run: npm install --no-audit --no-fund
- run: npx tsc --noEmit
- run: npm run build
- run: npm test