diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb62b8a8c..6b368eba9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,9 +51,6 @@ jobs: fi env: ORAS_PATH: bin/linux/amd64/oras - - name: Check coverage file - run: | - cat coverage.txt - name: Check Version run: bin/linux/amd64/oras version - name: Upload coverage to codecov.io @@ -62,4 +59,3 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: fail_ci_if_error: true - disable_file_fixes: true diff --git a/.gitignore b/.gitignore index 3962ba8c1..93f2f5cbf 100644 --- a/.gitignore +++ b/.gitignore @@ -36,7 +36,6 @@ debug # Custom coverage.txt -coverage-all.txt test/e2e/coverage.txt **/covcounters.* **/covmeta.* diff --git a/Makefile b/Makefile index df05f9655..d74576342 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,6 @@ GIT_COMMIT = $(shell git rev-parse HEAD) GIT_TAG = $(shell git describe --tags --abbrev=0 --exact-match 2>/dev/null) GIT_DIRTY = $(shell test -n "`git status --porcelain`" && echo "dirty" || echo "clean") GO_EXE = go -PKG_LIST := $(shell $(GO_EXE) list ./... | grep -v '^oras.land/oras/internal/testutils' | paste -sd ',' -) TARGET_OBJS ?= checksums.txt darwin_amd64.tar.gz darwin_arm64.tar.gz linux_amd64.tar.gz linux_arm64.tar.gz linux_armv7.tar.gz linux_s390x.tar.gz linux_ppc64le.tar.gz linux_riscv64.tar.gz windows_amd64.zip freebsd_amd64.tar.gz @@ -34,7 +33,7 @@ LDFLAGS += -X $(PROJECT_PKG)/internal/version.GitTreeState=${GIT_DIRTY} .PHONY: test test: tidy vendor check-encoding ## tidy and run tests - $(GO_EXE) test -race -v -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(PKG_LIST) ./... + $(GO_EXE) test -race -v -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./... .PHONY: teste2e teste2e: ## run end to end tests ./test/e2e/scripts/e2e.sh $(shell git rev-parse --show-toplevel) --clean