Enable integration tests (#760)
* Enable integration tests * Install chromium * Enable webServer * Run docker compose * Build docker images * Set working dir * Add Makefile * Fix healthcheck
This commit is contained in:
43
Makefile
Normal file
43
Makefile
Normal file
@@ -0,0 +1,43 @@
|
||||
## db
|
||||
|
||||
.PHONY: db-fmt
|
||||
db-fmt:
|
||||
cd db && go fmt ./...
|
||||
|
||||
.PHONY: db-vet
|
||||
db-vet:
|
||||
cd db && go vet ./...
|
||||
|
||||
.PHONY: db-test
|
||||
db-test:
|
||||
cd db && go test ./...
|
||||
|
||||
.PHONY: db-build
|
||||
db-build:
|
||||
cd db && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pocketbase_amd64
|
||||
|
||||
.PHONY: db-build-docker
|
||||
db-build-docker: db-build
|
||||
docker buildx build db/ --no-cache -t flomp/wanderer-db:latest
|
||||
|
||||
## Web
|
||||
|
||||
.PHONY: web-install
|
||||
web-install:
|
||||
cd web && npm install
|
||||
|
||||
.PHONY: web-playwright-install
|
||||
web-playwright-install:
|
||||
cd web && npx playwright install --with-deps chromium
|
||||
|
||||
.PHONY: web-check
|
||||
web-check:
|
||||
cd web && npm run check
|
||||
|
||||
.PHONY: web-test
|
||||
web-test:
|
||||
cd web && npm run test
|
||||
|
||||
.PHONY: web-build-docker
|
||||
web-build-docker:
|
||||
docker buildx build web/ --no-cache -t flomp/wanderer-web:latest
|
||||
Reference in New Issue
Block a user