feat: improve navigation and add security scans
Security / Secrets (gitleaks) (push) Successful in 1m29s
Lint / Lint (push) Successful in 1m43s
Security / Dependencies (Trivy) (push) Successful in 1m59s
Security / Code (Semgrep) (push) Successful in 3m34s
Tests / Dashboard checks (push) Successful in 1m2s
Tests / Go backend (push) Successful in 3m13s
Docker / Docker Build & Push (push) Successful in 8m15s

- Hide the lone navigation tab and show mobile menus as overlays
- Add secret, code, and dependency scanning to CI
- Update test workflows and remove an unused frontend dependency
This commit is contained in:
Gabriel20xx committed 2026-10-27 09:54:10 +00:00
1 parent 85e6db67b5
commit 817236f349
23 files changed
+299 -74

No files matched your search

+12 -5
View File
@@ -65,15 +65,15 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: scratch
ports:
- 5432:5432
- 5432/tcp
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s
--health-timeout 5s
--health-retries 10
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/scratch?sslmode=disable
SHARED_TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/scratch?sslmode=disable
DATABASE_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports['5432'] }}/scratch?sslmode=disable
SHARED_TEST_DATABASE_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports['5432'] }}/scratch?sslmode=disable
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -84,7 +84,14 @@ jobs:
cache: true
# -p 1 runs one package at a time, because the database tests share one scratch database.
- name: Run Go tests
run: go test -p 1 ./...
shell: bash
run: |
# Gitea Actions runs jobs in a container, where the service is reached by its label.
if [ "${GITEA_ACTIONS:-}" = "true" ]; then
export DATABASE_URL="postgres://postgres:postgres@postgres:5432/scratch?sslmode=disable"
export SHARED_TEST_DATABASE_URL="postgres://postgres:postgres@postgres:5432/scratch?sslmode=disable"
fi
go test -p 1 ./...
python:
name: Test (Python)
@@ -99,7 +106,7 @@ jobs:
with:
python-version: '3.12'
- name: Install package
run: python -m pip install --upgrade pip -e "packages/python-backend[fastapi]"
run: python -m pip install --upgrade pip -e "packages/python-backend[fastapi,test]"
- name: Run Python tests
run: python -m unittest discover -s packages/python-backend/tests -p 'test_*.py'