-
Notifications
You must be signed in to change notification settings - Fork 19
43 lines (38 loc) · 1.21 KB
/
kuttl-int-tests.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
name: "Integration tests"
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
# github.repository as <account>/<repo>
# REGISTRY: quay.io/${{ github.repository }}
# REGISTRY: quay.io/confidential-containers
KUTTL: /usr/local/bin/kubectl-kuttl
REGISTRY: quay.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
integration-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
go-version: 1.21
- uses: actions/[email protected]
- name: Install dependencies
run: |
sudo curl -Lo $KUTTL https://github.com/kudobuilder/kuttl/releases/download/v0.19.0/kubectl-kuttl_0.19.0_linux_x86_64
sudo chmod +x $KUTTL
sudo curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.24.0/kind-linux-amd64
sudo chmod +x kind
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_ID }}
password: ${{ secrets.QUAY_SECRET }}
- name: "Run integration tests"
run: REGISTRY=$REGISTRY${{ github.repository }} make test-e2e