chore: update CI, DB init, and documentation
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user