feat(ITS): [ENG-1627]: Moving ITS from release branch to main (#236)
Co-authored-by: Nikhil <nikhil@skip.money>
This commit is contained in:
@@ -85,29 +85,46 @@ build-and-start-app: build-test-app
|
||||
|
||||
.PHONY: build-test-app build-and-start-app
|
||||
|
||||
###############################################################################
|
||||
## Workspaces ##
|
||||
###############################################################################
|
||||
|
||||
use-main:
|
||||
go work edit -use .
|
||||
go work edit -dropuse ./tests/integration
|
||||
|
||||
use-integration:
|
||||
go work edit -dropuse .
|
||||
go work edit -use ./tests/integration
|
||||
|
||||
.PHONY: docker-build docker-build-integration
|
||||
###############################################################################
|
||||
## Docker ##
|
||||
###############################################################################
|
||||
|
||||
docker-build:
|
||||
docker-build: use-main
|
||||
@echo "Building E2E Docker image..."
|
||||
@DOCKER_BUILDKIT=1 docker build -t skip-mev/pob-e2e -f contrib/images/pob.e2e.Dockerfile .
|
||||
|
||||
docker-build-integration: use-main
|
||||
@echo "Building integration-test Docker image..."
|
||||
@DOCKER_BUILDKIT=1 docker build -t pob-integration -f contrib/images/pob.integration.Dockerfile .
|
||||
|
||||
###############################################################################
|
||||
### Tests ###
|
||||
###############################################################################
|
||||
|
||||
TEST_E2E_TAGS = e2e
|
||||
TEST_E2E_DEPS = docker-build
|
||||
TEST_INTEGRATION_DEPS = docker-build-integration use-integration
|
||||
TEST_INTEGRATION_TAGS = integration
|
||||
|
||||
test-e2e: $(TEST_E2E_DEPS)
|
||||
@echo "Running E2E tests..."
|
||||
@go test ./tests/e2e/... -mod=readonly -timeout 30m -race -v -tags='$(TEST_E2E_TAGS)'
|
||||
test-integration: $(TEST_INTEGRATION_DEPS)
|
||||
@ echo "Running integration tests..."
|
||||
@go test ./tests/integration/pob_integration_test.go -timeout 30m -race -v -tags='$(TEST_INTEGRATION_TAGS)'
|
||||
|
||||
test:
|
||||
test: use-main
|
||||
@go test -v -race $(shell go list ./... | grep -v tests/)
|
||||
|
||||
.PHONY: test test-e2e
|
||||
.PHONY: test test-integration
|
||||
|
||||
###############################################################################
|
||||
### Protobuf ###
|
||||
@@ -149,12 +166,12 @@ proto-update-deps:
|
||||
golangci_lint_cmd=golangci-lint
|
||||
golangci_version=v1.51.2
|
||||
|
||||
lint:
|
||||
lint: use-main
|
||||
@echo "--> Running linter"
|
||||
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version)
|
||||
@golangci-lint run
|
||||
|
||||
lint-fix:
|
||||
lint-fix: use-main
|
||||
@echo "--> Running linter"
|
||||
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version)
|
||||
@golangci-lint run --fix
|
||||
|
||||
Reference in New Issue
Block a user