Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Oct 19, 2021
1 parent 5f5f67d commit bd26d63
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/dbaas-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,36 @@ jobs:
- name: Install go, kustomize, kubebuilder, helm, docker-compose, kind
run: |
#go
echo "install go"
sudo rm -rf /usr/local/go
curl -sLo /tmp/go1.13.7.linux-amd64.tar.gz https://dl.google.com/go/go1.13.7.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf /tmp/go1.13.7.linux-amd64.tar.gz
#kustomize
echo "install kustomize"
curl -sLo /tmp/kustomize_v3.5.4_linux_amd64.tar.gz https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv3.5.4/kustomize_v3.5.4_linux_amd64.tar.gz
sudo tar -C /usr/local/bin -xzf /tmp/kustomize_v3.5.4_linux_amd64.tar.gz
#kubebuilder
curl -sL https://go.kubebuilder.io/dl/2.2.0/linux/amd64 | tar -xz -C /tmp/
sudo mv /tmp/kubebuilder_2.2.0_linux_amd64 /usr/local/kubebuilder
echo "install kubebuilder"
curl -sL https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.2.0/kubebuilder_2.2.0_linux_amd64.tar.gz | tar -xz -C /tmp/
sudo mkdir -p /usr/local/kubebuilder/bin
sudo mv /tmp/kubebuilder_2.2.0_linux_amd64/bin/* /usr/local/kubebuilder/bin
chmod +x /usr/local/kubebuilder/bin/*
#helm
echo "install helm"
curl -sL https://get.helm.sh/helm-v3.3.0-rc.1-linux-amd64.tar.gz | tar -xz -C /tmp/
sudo mv /tmp/linux-amd64/helm /usr/local/bin/helm
chmod +x /usr/local/bin/helm
#docker-compose
echo "install docker-compose"
sudo curl -sLo /usr/local/bin/docker-compose "https://github.com/docker/compose/releases/download/1.29.0/docker-compose-$(uname -s)-$(uname -m)"
sudo chmod +x /usr/local/bin/docker-compose
#kind
curl -sLo /tmp/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.9.0/kind-linux-amd64
echo "install kind"
curl -sLo /tmp/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.11.1/kind-linux-amd64
chmod +x /tmp/kind
sudo mv /tmp/kind /usr/local/bin/
- name: Create kind cluster
uses: helm/kind-action@v1.1.0
uses: helm/kind-action@v1.2.0
# with:
# config: test-resources/kind-config.yaml
- name: Run Tests
Expand Down

0 comments on commit bd26d63

Please sign in to comment.