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:
parent
1f8da3bd83
commit
00d3f07d08
8 changed files with 74 additions and 18 deletions
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue