ci: expand shared package validation and test coverage
- 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:
1 parent
937f51b4fb
commit
0ff94f9b10
107 files changed
+10124
-410
No files matched your search
@@ -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 ./...
|
||||
|
||||
Reference in new issue
Block a user