chore: update CI, DB init, and documentation
CI / Go vulnerabilities (push) Successful in 37s
CI / Tests (push) Successful in 1m44s
CI / Frontend lint & types (push) Successful in 1m51s
CI / Race detector (push) Successful in 4m42s

Update CI workflow, PostgreSQL init script, README, and obsidian technical docs.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-07-07 00:10:18 +01:00
co-authored by Sisyphus
parent 27be7cea91
commit f4969645c4
7 changed files with 82 additions and 20 deletions
+23 -3
View File
@@ -68,16 +68,28 @@ jobs:
- run: go build ./...
working-directory: backend
- run: go vet ./...
- name: Vet (dev tags)
run: go vet -tags "test,dev" ./...
working-directory: backend
- name: Test
- name: Vet (prod tags)
run: go vet -tags "test,!dev" ./...
working-directory: backend
- name: Test (dev tags)
working-directory: backend
run: go test -tags "test,dev" -count=1 -v -timeout 180s ./...
env:
POSTGRES_HOST: postgres
TEST_DB_HOST: postgres
- name: Test (prod tags — behavioral ratelimit, prod-only compile)
working-directory: backend
run: go test -tags "test,!dev" -count=1 -timeout 180s ./...
env:
POSTGRES_HOST: postgres
TEST_DB_HOST: postgres
race:
name: Race detector
runs-on: ubuntu-latest
@@ -130,7 +142,7 @@ jobs:
- run: PGPASSWORD=mypassword psql -h postgres -U myuser -d mydb -c "CREATE DATABASE crussell_test_db;" 2>/dev/null || true
- name: Test with race detector
- name: Race (dev tags)
working-directory: backend
run: go test -tags "test,dev" -race -count=1 -timeout 240s ./...
env:
@@ -138,6 +150,14 @@ jobs:
TEST_DB_HOST: postgres
CGO_ENABLED: "1"
- name: Race (prod tags)
working-directory: backend
run: go test -tags "test,!dev" -race -count=1 -timeout 240s ./...
env:
POSTGRES_HOST: postgres
TEST_DB_HOST: postgres
CGO_ENABLED: "1"
vulns:
name: Go vulnerabilities
runs-on: ubuntu-latest