forked from keptn/lifecycle-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
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.22"
defaults:
run:
shell: bash
jobs:
run-integration-test-component:
name: Run Chainsaw Tests
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- 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@82d8e747037f840e0ef9bdd97ecdc617f5535bdc # v0.2.8
- 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@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
with:
name: logs-integration-tests-${{ inputs.type }}
path: .github/scripts/logs