ci: expand CI checks and make consumer sync opt-in
- Add Go, npm, Python, and Java validation to CI - Run Go tests against PostgreSQL - Record performance fixes in the report
This commit is contained in:
1 parent
199a5efaef
commit
22887fef03
100 files changed
+9740
-429
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 ./...
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user