diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 780df8e6..1a4872ff 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -121,6 +121,14 @@ jobs: - name: Running tests run: ./ci/ci-test.sh + - name: Upload Coverage Report + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./integration.txt + name: coverage-integration-$(date +%s) + flags: bddtests + csi-driver: runs-on: ubuntu-latest needs: ['lint', 'unit-test', 'bdd-test'] diff --git a/Makefile b/Makefile index 9562d6a7..6366d610 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,6 @@ # list only csi source code directories PACKAGES = $(shell go list ./... | grep -v 'pkg/generated') -# UNIT_TEST_PACKAGES = $(shell go list ./... | grep -v 'pkg/generated\|tests') - # Lint our code. Reference: https://golang.org/cmd/vet/ VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods \ -nilfunc -printf -rangeloops -shift -structtags -unsafeptr diff --git a/ci/ci-test.sh b/ci/ci-test.sh index c048aef7..a44e6dad 100755 --- a/ci/ci-test.sh +++ b/ci/ci-test.sh @@ -161,7 +161,7 @@ set +e echo "running ginkgo test case" -if ! ginkgo -v ; then +if ! ginkgo -v -coverprofile=integration.txt -covermode=atomic; then sudo pvscan --cache