-
Notifications
You must be signed in to change notification settings - Fork 14
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
1cb1428
commit 900e542
Showing
1 changed file
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Upgrade test | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
upgrade-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: create single cluster | ||
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0 | ||
with: | ||
cluster-name: "k3dCluster" | ||
args: >- | ||
--agents 1 | ||
--port 80:80@loadbalancer | ||
--port 443:443@loadbalancer | ||
--wait | ||
- name: set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '*' #use latest version | ||
- name: install latest warden operator from the release | ||
run: | | ||
git fetch --tags | ||
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) | ||
make install | ||
- name: checkout to latest commit and install warden | ||
run: | | ||
git checkout $(git rev-parse origin/main) | ||
make install | ||
- name: run integration tests | ||
run: make test | ||
|