Makefile: implement make db-tests

enables the option to run the DB tests locally
that are executed in the github actions
This commit is contained in:
Florian Schüller 2024-10-23 14:33:45 +02:00 committed by Florian Schüller
parent 1f8da3bd83
commit 00d3f07d08
8 changed files with 74 additions and 18 deletions

View file

@ -79,14 +79,9 @@ jobs:
PGHOST: localhost
PGPORT: 5432
run: |
WORKDIR=$(readlink -f pkg/jobqueue/dbjobqueue/schemas)
pushd $(mktemp -d)
go mod init temp
go install github.com/jackc/tern@latest
$(go env GOPATH)/bin/tern migrate -m "$WORKDIR"
popd
- run: go test -tags=integration ./cmd/osbuild-composer-dbjobqueue-tests
- run: go test -tags=integration ./cmd/osbuild-service-maintenance
./tools/dbtest-prepare-env.sh
./tools/dbtest-run-migrations.sh
- run: ./tools/dbtest-entrypoint.sh
python-lint:
name: "🐍 Lint python scripts"