Migrate from GitLab CI/CD to GitHub actions (#1)
This also adds a new Dockerfile for a e2e-test-image, as the old image was hosted on our private registry. By having the image located near the code, we don't have to rely on images on external registries.
This commit is contained in:
10
Makefile
10
Makefile
@ -5,6 +5,8 @@ UNIT_TESTS = $(shell go list ./... | grep -v /e2e)
|
||||
DOCKER_E2E_CONTAINER_NAME := "$(PROJECT_NAME)-e2e-tests"
|
||||
DOCKER_TAG := "poseidon:latest"
|
||||
DOCKER_OPTS := -v $(shell pwd)/configuration.yaml:/configuration.yaml
|
||||
# don't use :latest to prevent Nomad from trying to pull the image automatically
|
||||
E2E_TEST_DOCKER_IMAGE = "poseidon/e2e-docker-image:ci"
|
||||
|
||||
default: help
|
||||
|
||||
@ -79,9 +81,13 @@ coverage: deps ## Generate code coverage report
|
||||
coverhtml: coverage ## Generate HTML coverage report
|
||||
@go tool cover -html=coverage_cleaned.cov -o coverage_unit.html
|
||||
|
||||
.PHONY: e2e-test-docker-image ## Build Docker image used in e2e tests
|
||||
e2e-test-docker-image: deploy/e2e-test-image/Dockerfile
|
||||
@docker build -t $(E2E_TEST_DOCKER_IMAGE) deploy/e2e-test-image
|
||||
|
||||
.PHONY: e2e-test
|
||||
e2e-test: deps ## Run e2e tests
|
||||
@go test -count=1 ./tests/e2e -v -args -dockerImage="drp.codemoon.xopic.de/openhpi/co_execenv_python:3.8"
|
||||
e2e-test: deps e2e-test-docker-image ## Run e2e tests
|
||||
@go test -count=1 ./tests/e2e -v -args -dockerImage="$(E2E_TEST_DOCKER_IMAGE)"
|
||||
|
||||
.PHONY: e2e-docker
|
||||
e2e-docker: docker ## Run e2e tests against the Docker container
|
||||
|
Reference in New Issue
Block a user