forked from pravega/zookeeper-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31f8ba7
commit 7f0af5d
Showing
2 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,7 @@ jobs: | |
contents: read | ||
packages: write | ||
steps: | ||
# - name: Login to GHCR | ||
# uses: docker/login-action@v3 | ||
# with: | ||
# registry: ghcr.io | ||
# username: ${{ github.repository_owner }} | ||
# password: ${{ secrets.GITHUB_TOKEN }}` | ||
|
||
- name: Set up Go 1.21 | ||
uses: actions/setup-go@v2 | ||
with: | ||
|
@@ -46,12 +41,23 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: get go version | ||
run: go version | ||
- name: install utilites | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential conntrack | ||
- name: make all (crds, manifests, checks, binary, images) | ||
run: make all | ||
- name: Gofmt and License checks | ||
run: make check | ||
- name: unit tests | ||
run: make test | ||
|
||
# - name: Login to GHCR | ||
# uses: docker/login-action@v3 | ||
# with: | ||
# registry: ghcr.io | ||
# username: ${{ github.repository_owner }} | ||
# password: ${{ secrets.GITHUB_TOKEN }}` | ||
# - name: install utilites | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get install -y build-essential conntrack | ||
# - name: make all (crds, manifests, checks, binary, images) | ||
# run: make all | ||
# - name: install kubectl | ||
# uses: azure/setup-kubectl@v3 | ||
# with: | ||
|
@@ -74,10 +80,10 @@ jobs: | |
# run: | | ||
# kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default | ||
# kubectl create secret docker-registry regcred --docker-server=https://index.docker.io/v1/ --docker-username="testanisha" --docker-password="123456789" [email protected] | ||
|
||
# - uses: docker/setup-buildx-action@v3 | ||
# - name: Codecov | ||
# uses: codecov/[email protected] | ||
|
||
- name: Set env | ||
run: | | ||
echo "KUBERNETES_VERSION=v1.23.1" >> $GITHUB_ENV | ||
|
@@ -88,6 +94,8 @@ jobs: | |
run: | | ||
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/$KUBERNETES_VERSION/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ | ||
curl -Lo minikube https://storage.googleapis.com/minikube/releases/$MINIKUBE_VERSION/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ | ||
sudo mount --make-rshared / | ||
sudo apt-get install -y conntrack | ||
CHANGE_MINIKUBE_NONE_USER=true | ||
export KUBERNETES_CONFIG_FILE=$HOME/.kube/config | ||
export KUBERNETES_CONFIG_FILE=$HOME/.kube/config;export CHANGE_MINIKUBE_NONE_USER=true;sudo minikube start --vm-driver=none --bootstrapper=kubeadm --kubernetes-version=$KUBERNETES_VERSION | ||
|
@@ -103,7 +111,7 @@ jobs: | |
sudo kubectl -n kube-system get pod -o wide | ||
sudo kubectl create secret docker-registry regcred --docker-server=https://index.docker.io/v1/ --docker-username="testanisha" --docker-password="123456789" [email protected] | ||
- name: E2E | ||
run: make test-e2e | ||
run: sudo make test-e2e | ||
publish: | ||
name: Publish docker image | ||
runs-on: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters