Bump github.com/onsi/ginkgo/v2 from 2.9.5 to 2.13.0 #664
Workflow file for this run
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
name: Upgrade | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: | |
- main | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
- "v[0-9]+.[0-9]+" | |
defaults: | |
run: | |
shell: bash | |
working-directory: metallboperator | |
jobs: | |
main: | |
runs-on: ubuntu-20.04 | |
env: | |
built_image_prev_release: "metallb-operator-prev-rel:ci" # Arbitrary name | |
built_image: "metallb-operator:ci" # Arbitrary name | |
name: Go 1.17 -> Go 1.20 | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout Previous Release Metal LB Operator | |
uses: actions/checkout@v2 | |
with: | |
path: metallboperator | |
ref: v0.12 # previous release version | |
fetch-depth: 0 # Fetch all history for all tags and branches | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17' # this need to stay to 1.17 as long as the previous release is v0.12 | |
- name: Build image | |
run: | | |
IMG=${built_image_prev_release} make docker-build | |
- name: Create K8s Kind Cluster | |
run: | | |
./hack/kind-cluster-without-registry.sh | |
kind load docker-image ${built_image_prev_release} | |
- name: Deploy Previous Release Metal LB Operator | |
run: | | |
make deploy-cert-manager | |
IMG=${built_image_prev_release} KUSTOMIZE_DEPLOY_DIR="config/kind-ci/" ENABLE_OPERATOR_WEBHOOK="true" make deploy | |
- name: E2E Tests | |
run: | | |
export KUBECONFIG=${HOME}/.kube/config | |
make test-validation | |
make test-e2e | |
- name: Archive E2E Tests logs | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: test_e2e_logs | |
path: /tmp/test_e2e_logs/ | |
- name: Export kind logs | |
if: ${{ failure() }} | |
run: | | |
kind export logs /tmp/kind_logs | |
- name: Archive kind logs | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: kind_logs | |
path: /tmp/kind_logs | |
- name: Checkout Latest Metal LB Operator | |
uses: actions/checkout@v2 | |
with: | |
path: metallboperator-latest | |
fetch-depth: 0 # Fetch all history for all tags and branches | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.20' | |
- name: Delete old controller-gen | |
run: | | |
rm $(which controller-gen) | |
- name: Build image | |
run: | | |
cd ${GITHUB_WORKSPACE}/metallboperator-latest | |
IMG=${built_image} make docker-build | |
kind load docker-image ${built_image} | |
- name: Deploy Metal LB Operator | |
run: | | |
cd ${GITHUB_WORKSPACE}/metallboperator-latest | |
IMG=${built_image} KUSTOMIZE_DEPLOY_DIR="config/kind-ci/" make deploy | |
- name: Ensure MetalLB operator is ready | |
run: | | |
sleep 5 | |
while [ "$(kubectl get pods -n metallb-system -l control-plane='controller-manager' -o jsonpath='{.items[*].status.containerStatuses[0].ready}')" != "true" ]; do | |
sleep 5 | |
echo "Waiting for operator pod to be ready." | |
done | |
- name: E2E Tests | |
run: | | |
cd ${GITHUB_WORKSPACE}/metallboperator-latest | |
export KUBECONFIG=${HOME}/.kube/config | |
make test-validation | |
make test-e2e | |
- name: Archive E2E Tests logs | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: test_e2e_logs | |
path: /tmp/test_e2e_logs/ | |
- name: Export kind logs | |
if: ${{ failure() }} | |
run: | | |
kind export logs /tmp/kind_logs | |
- name: Archive kind logs | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: kind_logs | |
path: /tmp/kind_logs |