Skip to content

Commit

Permalink
setting the CI target to run_test_cover_codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-at-startupmedia committed Oct 24, 2024
1 parent 4f51ec2 commit 5946c9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
GOPATH_BIN=$(go env GOPATH)/bin
export PATH="${GOPATH_BIN}:${PATH}"
docker build --build-arg TEST_PACKAGES_ARG=${{inputs.cover_packages}} --build-arg TEST_REGEX_ARG=${{inputs.run_regex}} --build-arg CODECOV_TOKEN_ARG=${{ secrets.CODECOV_TOKEN }} --build-arg GIT_BRANCH_ARG=${{ steps.extract_branch.outputs.branch }} --build-arg MAKE_TARGET_ARG=test -t pmon3 .
docker build --build-arg TEST_PACKAGES_ARG=${{inputs.cover_packages}} --build-arg TEST_REGEX_ARG=${{inputs.run_regex}} --build-arg CODECOV_TOKEN_ARG=${{ secrets.CODECOV_TOKEN }} --build-arg GIT_BRANCH_ARG=${{ steps.extract_branch.outputs.branch }} --build-arg MAKE_TARGET_ARG=run_test_cover_codecov -t pmon3 .
- name: Docker Testing
run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ make_test_app: ## build the test app
cp ./test/app/bin/test_app "$(TEST_ARTIFACT_PATH)"

.PHONY: run_test
run_test: clean make_test_app ## run the tests
run_test: make_test_app ## run the tests
$(call print-target)
PROJECT_PATH=$(PROJECT_PATH) ARTIFACT_PATH=$(TEST_ARTIFACT_PATH) $(GO) test $(BUILD_FLAGS) -v -run $(TEST_REGEX) -p 1 ./test/e2e/

.PHONY: run_test_cover
run_test_cover: clean make_test_app ## run the tests and generate a coverage report
run_test_cover: make_test_app ## run the tests and generate a coverage report
$(call print-target)
PROJECT_PATH=$(PROJECT_PATH) ARTIFACT_PATH=$(TEST_ARTIFACT_PATH) $(GO) test $(BUILD_FLAGS) -v -run $(TEST_REGEX) -p 1 -coverprofile=coverage.out -coverpkg=$(TEST_PACKAGES) ./test/e2e/

Expand Down

0 comments on commit 5946c9d

Please sign in to comment.