Skip to content

Commit

Permalink
github: fix test actions
Browse files Browse the repository at this point in the history
Pass the path to the kubeconfig, and cleanup some variables that are not
in use.

Also, ensure that the e2e tests are not executed when the
`hack/test-go.sh` script is executed - that is for the unit tests only.

Signed-off-by: Miguel Duarte Barroso <[email protected]>
  • Loading branch information
maiqueb committed Feb 22, 2022
1 parent 26f6137 commit e84a760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ jobs:
runs-on: ubuntu-latest
env:
NUMBER_OF_COMPUTE_NODES: 5
NUMBER_OF_THRASH_ITER: 20
FILL_PERCENT_CAPACITY: 20
KUBECONFIG: ~/.kube/config
steps:
- name: Set up Go version
uses: actions/setup-go@v1
Expand Down
2 changes: 1 addition & 1 deletion hack/test-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -e -x
echo "Linting go code..."
golint ./cmd ./pkg
echo "Running go tests..."
KUBEBUILDER_ASSETS="$(pwd)/bin" go test -v -covermode=count -coverprofile=coverage.out ./...
KUBEBUILDER_ASSETS="$(pwd)/bin" go test -v -covermode=count -coverprofile=coverage.out $(go list ./... | grep -v e2e | tr "\n" " ")

0 comments on commit e84a760

Please sign in to comment.