Skip to content

Commit

Permalink
(chore): Fix the release pipeline (#154)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Chaudhary <[email protected]>
  • Loading branch information
ispeakc0de authored Oct 15, 2024
1 parent 5c105e7 commit cf2a376
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 82 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,36 +68,3 @@ jobs:
DPASS: ${{ secrets.DPASS }}
run: |
make push
tests:
needs: pre-checks
runs-on: ubuntu-latest
steps:
# Checkout to the latest commit
# On specific directory/path
- name: Checkout
uses: actions/checkout@v2

# Install golang
- uses: actions/setup-go@v2
with:
go-version: 1.20.0

#Install and configure a k3S cluster
- name: Installing Prerequisites (K3S Cluster)
env:
KUBECONFIG: /etc/rancher/k3s/k3s.yaml
run: |
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.21.11+k3s1 sh -s - --docker --write-kubeconfig-mode 664
kubectl wait node --all --for condition=ready --timeout=90s
mkdir -p $HOME/.kube
cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
kubectl get nodes
- name: Dependency checks
run: |
make deps
- name: Running Go BDD Test
run: |
make test
49 changes: 0 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: gofmt check
run: |
if [ "$(gofmt -s -l . | wc -l)" -ne 0 ]
then
echo "The following files were found to be not go formatted:"
gofmt -s -l .
exit 1
fi
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1

- name: unused-package check
run: |
make unused-package-check
image-build:
runs-on: ubuntu-latest
needs: pre-checks
Expand Down Expand Up @@ -82,36 +66,3 @@ jobs:
DPASS: ${{ secrets.DPASS }}
run: |
make push
tests:
needs: pre-checks
runs-on: ubuntu-latest
steps:
# Checkout to the latest commit
# On specific directory/path
- name: Checkout
uses: actions/checkout@v2

# Install golang
- uses: actions/setup-go@v2
with:
go-version: 1.20.0

#Install and configure a k3S cluster
- name: Installing Prerequisites (K3S Cluster)
env:
KUBECONFIG: /etc/rancher/k3s/k3s.yaml
run: |
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.21.11+k3s1 sh -s - --docker --write-kubeconfig-mode 664
kubectl wait node --all --for condition=ready --timeout=90s
mkdir -p $HOME/.kube
cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
kubectl get nodes
- name: Dependency checks
run: |
make deps
- name: Running Go BDD Test
run: |
make test

0 comments on commit cf2a376

Please sign in to comment.