zot-wo-auth/Makefile
Raul Kele f2ec10b16b patch: bump vulnerable dependencies (#442)
Signed-off-by: Raul-Cristian Kele <raulkeleblk@gmail.com>
2024-11-08 23:15:41 +03:00

44 lines
820 B
Makefile

REGISTRY_HOST ?= localhost
REGISTRY_PORT ?= 8080
.PHONY: all
all: install audit build
.PHONY: install
install:
npm install --no-audit;\
npx update-browserslist-db@latest
.PHONY: build
build:
npm run build
.PHONY: update
update:
npm update
.PHONY: audit
audit:
npm audit --omit=dev
.PHONY: run
run:
npm start
.PHONY: test-data
test-data:
./tests/scripts/load_test_data.py \
--registry $(REGISTRY_HOST):$(REGISTRY_PORT) \
--data-dir tests/data \
--config-file tests/data/config.yaml \
--metadata-file tests/data/image_metadata.json \
-d
.PHONY: playwright-browsers
playwright-browsers:
npx playwright install --with-deps
.PHONY: integration-tests
integration-tests: # Triggering the tests TBD
UI_HOST=$(REGISTRY_HOST):$(REGISTRY_PORT) API_HOST=$(REGISTRY_HOST):$(REGISTRY_PORT) npm run test:ui