-
Notifications
You must be signed in to change notification settings - Fork 126
57 lines (48 loc) · 1.61 KB
/
integration-test-component.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
name: Integration-Test-Component
on:
workflow_call:
inputs:
runtime_tag:
description: "Tag for the deno and python runner images"
type: "string"
required: true
type:
description: "Type of the tests that are going to be executed"
type: "string"
required: true
# Declare default permissions as read only.
permissions: read-all
env:
GO_VERSION: "~1.23"
defaults:
run:
shell: bash
jobs:
run-integration-test-component:
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.type }}.yaml
- 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 ${{ inputs.type }}
working-directory: .
run: make integration-test-${{ inputs.type }}
- 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.type }}
path: .github/scripts/logs