-
Notifications
You must be signed in to change notification settings - Fork 126
58 lines (49 loc) · 1.69 KB
/
integration-test.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
54
55
56
57
58
name: Integration-Test
on:
workflow_call:
inputs:
runtime_tag:
description: "Tag for the deno and python runner images"
type: "string"
required: true
cert-manager-io-enabled:
description: "Decides whether to use cert-manager.io"
type: "string"
default: "cert_manager_io_off"
# Declare default permissions as read only.
permissions: read-all
env:
GO_VERSION: "~1.23"
defaults:
run:
shell: bash
jobs:
run-integration-test:
name: Run Chainsaw Tests
runs-on: ubuntu-24.04
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup cluster
uses: ./.github/actions/deploy-keptn-on-cluster
with:
runtime_tag: ${{ inputs.runtime_tag }}
values-file: values-integration-${{ inputs.cert-manager-io-enabled }}.yaml
cert-manager-io-enabled: ${{ inputs.cert-manager-io-enabled }}
- name: Install and expose Prometheus
uses: ./.github/actions/deploy-prometheus-on-cluster
- name: Install Chainsaw
uses: kyverno/action-install-chainsaw@d311eacde764f806c9658574ff64c9c3b21f8397 # v0.2.11
- name: Run Integration Tests
working-directory: .
run: make integration-test
- name: Create reports
if: failure()
working-directory: ./.github/scripts
run: ./create-reports-full.sh
- name: Upload cluster logs
if: failure()
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: logs-integration-tests-${{ inputs.cert-manager-io-enabled }}
path: .github/scripts/logs