Fix - Fixes the e2e tests for PR's

This commit is contained in:
naveen 2021-02-10 15:59:27 -05:00 committed by Naveen
parent 7ef0cf9c55
commit 6dd3698be8

View File

@ -25,9 +25,15 @@ jobs:
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
run: |
go get github.com/onsi/ginkgo/ginkgo@v1.14.2
go mod download
make e2e
if [[ ! -v GITHUB_AUTH_TOKEN ]]; then
echo "GITHUB_AUTH_TOKEN is not set, skip test"
elif [[ -z "$GITHUB_AUTH_TOKEN" ]]; then
echo "GITHUB_AUTH_TOKEN is set to the empty string, skip test"
else
go get github.com/onsi/ginkgo/ginkgo@v1.14.2
go mod download
make e2e
fi
- uses: codecov/codecov-action@v1
with:
files: e2e/e2e.coverprofile,pkg/pkg.coverprofile,checks/checks.coverprofile