mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
* chore(e2e): updates testing to use playwright * chore: updates workflows * fixes spaces * fixes space again * fixes int test to add docker * chore: ignore e2e tests for vite * updates screenshots for linux * updates screenshots again * chore: uses docker compose for e2e * adds PWTEST_SKIP_TEST_OUTPUT * add ci * updates screenshots again * updates with css * adds more tests * updates tests
35 lines
504 B
Makefile
35 lines
504 B
Makefile
.PHONY: clean
|
|
clean:
|
|
@rm -rf dist
|
|
@go clean -i
|
|
|
|
.PHONY: dist
|
|
dist:
|
|
@pnpm build
|
|
|
|
.PHONY: fake_assets
|
|
fake_assets:
|
|
@echo 'Skipping asset build'
|
|
@mkdir -p dist
|
|
@echo "assets build was skipped" > dist/index.html
|
|
|
|
.PHONY: test
|
|
test: fake_assets
|
|
go test -cover ./...
|
|
|
|
.PHONY: build
|
|
build: dist
|
|
CGO_ENABLED=0 go build -ldflags "-s -w"
|
|
|
|
.PHONY: docker
|
|
docker:
|
|
@docker build -t amir20/dozzle .
|
|
|
|
.PHONY: dev
|
|
dev:
|
|
pnpm dev
|
|
|
|
.PHONY: int
|
|
int:
|
|
docker compose up --force-recreate --exit-code-from playwright
|