Skip to content

Commit

Permalink
Download kubectl for tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusweig authored Jul 25, 2021
1 parent 257274a commit 79fe239
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
set -euo pipefail
sudo apt-get update -qq
sudo apt-get install -qq bats
# To make 'no kubectl detected' test work, move kubectl to /usr/local/bin/
sudo mv /bin/kubectl /usr/local/bin/kubectl
# To make 'no kubectl detected' test work, place kubectl in /usr/local/bin/
sudo curl -fsSL -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.21.3/bin/linux/amd64/kubectl
sudo chmod +x /usr/local/bin/kubectl
make test
- name: Create assets
Expand Down

0 comments on commit 79fe239

Please sign in to comment.