Initial phase 1 baseline implementation
Some checks failed
CI / Backend (push) Failing after 4s
CI / Frontend (push) Successful in 11s
CI / Contracts and repository policy (push) Failing after 5s
CI / Container (push) Has been skipped

This commit is contained in:
Elijah 2026-07-16 19:14:01 -07:00
parent 099c53badf
commit 077cf7601a
29 changed files with 1339 additions and 39 deletions

View file

@ -13,6 +13,22 @@ jobs:
backend:
name: Backend
runs-on: ubuntu-latest
services:
postgres:
image: postgres:18.4-bookworm
env:
POSTGRES_DB: drive_test
POSTGRES_USER: drive
POSTGRES_PASSWORD: drive-test-only
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U drive -d drive_test"
--health-interval 5s
--health-timeout 5s
--health-retries 10
env:
DRIVE_TEST_DATABASE_URL: postgres://drive:drive-test-only@127.0.0.1:5432/drive_test?sslmode=disable
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
@ -50,6 +66,10 @@ jobs:
uses: docker://redocly/cli:1.34.5
with:
args: lint api/openapi.yaml
- name: Verify generated PostgreSQL repository
run: |
docker run --rm -v "$PWD:/src" -w /src sqlc/sqlc:1.31.1 generate
git diff --exit-code -- internal/adapters/postgres/generated
- name: Reject committed secrets and local data
run: |
test ! -e .env
@ -63,3 +83,5 @@ jobs:
- uses: actions/checkout@v4
- name: Build application image
run: docker build --build-arg VERSION=${{ github.sha }} -t drive-v2:${{ github.sha }} .
- name: Smoke application image
run: sh scripts/smoke-image.sh drive-v2:${{ github.sha }}