-
Notifications
You must be signed in to change notification settings - Fork 591
78 lines (69 loc) · 2.25 KB
/
_conformance_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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: conformance tests
on:
workflow_call:
inputs:
log-output-file:
# specifies the file for KIC manager's logs to output to.
type: string
default: ""
required: false
jobs:
dependencies-versions:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT || 10) }}
runs-on: ubuntu-latest
outputs:
helm-kong: ${{ steps.set-versions.outputs.helm-kong }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- id: set-versions
name: Set versions
run: |
echo "helm-kong=$(yq -ojson -r '.integration.helm.kong' < .github/test_dependencies.yaml )" >> $GITHUB_OUTPUT
conformance-tests:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT || 10) }}
name: ${{ matrix.name }}
runs-on: ubuntu-latest
needs: dependencies-versions
env:
TEST_KONG_HELM_CHART_VERSION: ${{ needs.dependencies-versions.outputs.helm-kong }}
strategy:
fail-fast: false
matrix:
include:
- name: traditional-compatible-router
router-flavor: traditional_compatible
- name: expressions-router
router-flavor: expressions
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: jdx/mise-action@v2
with:
install: false
- name: run conformance tests
run: make test.conformance
env:
MISE_VERBOSE: 1
MISE_DEBUG: 1
JUNIT_REPORT: conformance-tests.xml
TEST_KONG_ROUTER_FLAVOR: ${{ matrix.router-flavor }}
TEST_KONG_KIC_MANAGER_LOG_OUTPUT: ${{ inputs.log-output-file }}
# upload logs when test failed
- name: upload KIC logs
if: ${{ failure() && inputs.log-output-file != '' }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}-kic-logs
path: ${{ inputs.log-output-file }}
if-no-files-found: ignore
- name: collect test report
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: tests-report-conformance-${{ matrix.name }}
path: conformance-tests.xml