feat: bootstrap foundation application

This commit is contained in:
2026-04-29 00:26:58 -04:00
parent 8e6646499f
commit 4a72e1e030
53 changed files with 4443 additions and 0 deletions

48
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,48 @@
name: ci
on:
push:
branches:
- master
- "codex/**"
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.24.2"
- uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
cache-dependency-path: apps/web/package-lock.json
- name: Install build tooling
run: sudo apt-get update && sudo apt-get install -y build-essential
- name: Install web dependencies
run: cd apps/web && npm install
- name: Build web
run: cd apps/web && npm run build
- name: Run Go tests
run: cd apps/server && CGO_ENABLED=1 go test ./...
- name: Build server
run: cd apps/server && CGO_ENABLED=1 go build -trimpath ./cmd/md-hub-secure
- name: Run govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
cd apps/server && govulncheck ./...
- name: Build container
run: docker build .