Skip to content

Commit

Permalink
add workflow for testing upgrade from latest release to latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhelfand committed Jul 1, 2021
1 parent 451d96c commit 1388537
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/upgrade-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: upgrade-testing
"on":
push:
branches:
- develop
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
types: [opened, reopened, synchronize]
paths-ignore:
- 'docs/**'
- '*.md'

jobs:
test-all:
name: Upgrade Testing
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v1
with:
go-version: "1.16"
- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
path: src/github.com/${{ github.repository }}
- name: Install Carvel Tools
uses: vmware-tanzu/carvel-setup-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
only: ytt, kapp, kbld
ytt: v0.34.0
kapp: v0.37.0
kbld: v0.30.0
- name: Run Upgrade Test
run: |
set -e -x
export GOPATH=$(echo `pwd`/../../../../)
mkdir /tmp/bin
export PATH=/tmp/bin:$PATH
wget -O- https://github.com/kubernetes/minikube/releases/download/v1.21.0/minikube-linux-amd64 > /tmp/bin/minikube
echo "5d423a00a24fdfbb95627a3fadbf58540fc4463be2338619257c529f93cf061b /tmp/bin/minikube" | sha256sum -c -
chmod +x /tmp/bin/minikube
minikube start --driver=docker
eval $(minikube docker-env --shell=bash)
kapp deploy -a kc -f https://github.com/vmware-tanzu/carvel-kapp-controller/releases/latest/download/release.yml -y
./hack/deploy.sh

0 comments on commit 1388537

Please sign in to comment.