From 02ee2753e32aa7492deaed0493541c3205a5a402 Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Mon, 17 Jul 2023 06:43:06 +0000 Subject: [PATCH] test Signed-off-by: Billy Zha --- .github/workflows/build.yml | 5 +---- Makefile | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f7c7a38d6..dcde1e0ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,7 @@ on: branches: - main - release-* + - fix-e2e-demo pull_request: branches: - main @@ -43,11 +44,7 @@ jobs: run: make test - name: Run E2E Tests run: | - if [[ $GITHUB_REF_NAME == v* && $GITHUB_REF_TYPE == tag ]]; then - make teste2e - else make teste2e-covdata - fi env: ORAS_PATH: bin/linux/amd64/oras - name: Check Version diff --git a/Makefile b/Makefile index cbf8181c4..df548f223 100644 --- a/Makefile +++ b/Makefile @@ -134,8 +134,7 @@ teste2e-covdata: ## test e2e coverage export GOCOVERDIR=$(CURDIR)/test/e2e/.cover; \ rm -rf $$GOCOVERDIR; \ mkdir -p $$GOCOVERDIR; \ - $(MAKE) teste2e; \ - $(GO_EXE) tool covdata textfmt -i=$$GOCOVERDIR -o "$(CURDIR)/test/e2e/coverage.txt" + $(MAKE) teste2e && $(GO_EXE) tool covdata textfmt -i=$$GOCOVERDIR -o "$(CURDIR)/test/e2e/coverage.txt" .PHONY: help help: ## Display this help