ci: expand shared package validation and test coverage
Lint / Lint (push) Successful in 32s
Docker / Docker Build & Push (push) Failing after 2m22s
Tests / Go backend (push) Failing after 1m2s
Tests / Dashboard checks (push) Failing after 35s

- Add lint, formatting, vet, and publish workflow checks
- Run Go database tests with PostgreSQL and add Java tests
- Make consumer sync opt-in; update docs and Go dependency
This commit is contained in:
Gabriel20xx committed 2026-10-19 21:46:52 +00:00
1 parent 937f51b4fb
commit 0ff94f9b10
107 files changed
+10124 -410

No files matched your search

+11
View File
@@ -26,6 +26,17 @@ jobs:
go-version-file: backend/go.mod
cache: false
- name: Check formatting and vet the Go module
working-directory: backend
shell: bash
run: |
set -euo pipefail
mapfile -d '' go_files < <(find . -type f -name '*.go' -print0)
if ((${#go_files[@]})); then
test -z "$(gofmt -l "${go_files[@]}")"
fi
go vet ./...
- name: Test Go module
working-directory: backend
run: go test ./...
+5
View File
@@ -29,6 +29,11 @@ jobs:
npm ci
npm run build
- name: Run the lint and test checks that gate pull requests
run: |
npm run lint
npm test
- name: Configure Gitea npm registry
env:
PACKAGE_REGISTRY_USERNAME: ${{ secrets.PACKAGE_REGISTRY_USERNAME }}
@@ -23,6 +23,13 @@ jobs:
with:
python-version: '3.12'
- name: Run the lint and test checks that gate pull requests
run: |
set -euo pipefail
python -m pip install --disable-pip-version-check --upgrade pip ruff -e "packages/python-backend[fastapi]"
ruff check packages/python-backend/src packages/python-backend/tests
python -m unittest discover -s packages/python-backend/tests -p 'test_*.py'
- name: Build and publish package
env:
PACKAGE_REGISTRY_USERNAME: ${{ secrets.PACKAGE_REGISTRY_USERNAME }}