zot-wo-auth/Makefile

44 lines
820 B
Makefile
Raw Normal View History

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