forked from kube-burner/kube-burner
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.14 KB
/
test-k8s.yml
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
46
47
48
49
50
51
52
53
# test-k8s.yml
name: Execute tests on k8s and OCP
on:
workflow_call:
secrets:
OPENSHIFT_SERVER:
required: true
OPENSHIFT_USER:
required: true
OPENSHIFT_PASSWORD:
required: true
jobs:
test-k8s:
runs-on: ubuntu-latest
strategy:
matrix:
k8s-version:
- v1.25.0
- v1.26.0
- v1.27.0
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: Download kube-burner binary
uses: actions/download-artifact@v4
with:
name: kube-burner
path: /tmp/
- name: Install bats
uses: bats-core/[email protected]
with:
bats-version: 1.10.0
support-install: false
assert-install: false
detik-install: false
file-install: false
- name: Execute Tests
run: |
export PATH=${PATH}:/tmp/
chmod +x /tmp/kube-burner
make test-k8s
env:
TERM: linux
KIND_VERSION: v0.19.0
K8S_VERSION: ${{matrix.k8s-version}}