-
Notifications
You must be signed in to change notification settings - Fork 14
45 lines (43 loc) · 1.21 KB
/
upgrade-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Upgrade test
on:
push:
branches: [ "main", "release-*" ]
pull_request:
paths-ignore:
- 'docs/**'
- 'examples/**'
types:
- opened
- reopened
- synchronize
- ready_for_review
- converted_to_draft
jobs:
upgrade-test:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event_name == 'pull_request'
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: install latest warden operator from the release
run: |
go version
git fetch --tags
latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
git checkout $latest_tag
make install
- name: checkout to latest commit and install warden
run: |
last_commit=$(git rev-parse origin/main)
git checkout $last_commit
make install
- name: run integration tests
run: make test