@@ -2,103 +2,41 @@ name: Secure Integration Tests
22
33on :
44 push :
5- branches :
6- - main
7- - " [0-9]+.[0-9]+"
85 pull_request :
96 branches :
107 - main
11- - " [0-9]+.[0-9]+"
128 workflow_dispatch :
139
1410jobs :
1511 secure-integration-tests :
16- name : Secure Integration Test - ES ${{ matrix.elastic_stack_version }} ${{ matrix.snapshot && '(Snapshot)' || '' }} ${{ matrix.es_ssl_key_invalid && '(Invalid SSL)' || '' }} ${{ matrix.es_ssl_supported_protocols && format('({0})', matrix.es_ssl_supported_protocols) || '' }}
12+ name : Secure Integration Test - ES ${{ matrix.elastic_stack_version }} ${{ matrix.snapshot && '(Snapshot)' || '' }}
1713 runs-on : ubuntu-latest
1814 strategy :
1915 fail-fast : false
2016 matrix :
17+ elastic_stack_version :
18+ - " 7.current"
19+ - " 8.current"
20+ - " 9.current"
21+ snapshot : [false, true]
2122 include :
22- # Regular secure integration tests
23- - elastic_stack_version : " 7.current"
24- snapshot : false
25- - elastic_stack_version : " 8.current"
26- snapshot : false
27- - elastic_stack_version : " 9.current"
28- snapshot : false
29-
30- # SSL configuration tests for 8.current
31- - elastic_stack_version : " 8.current"
32- snapshot : false
33- es_ssl_key_invalid : true
34- - elastic_stack_version : " 8.current"
35- snapshot : false
36- es_ssl_supported_protocols : " TLSv1.3"
37-
38- # SSL configuration tests for 9.current
39- - elastic_stack_version : " 9.current"
40- snapshot : false
41- es_ssl_key_invalid : true
42- - elastic_stack_version : " 9.current"
43- snapshot : false
44- es_ssl_supported_protocols : " TLSv1.3"
45-
46- # Snapshot tests
47- - elastic_stack_version : " 8.current"
48- snapshot : true
49- - elastic_stack_version : " 9.current"
50- snapshot : true
5123 - elastic_stack_version : " main"
5224 snapshot : true
5325
5426 steps :
5527 - name : Checkout code
56- uses : actions/checkout@v4
57-
58- - name : Set up environment variables
59- run : |
60- echo "SECURE_INTEGRATION=true" >> $GITHUB_ENV
61- echo "INTEGRATION=true" >> $GITHUB_ENV
62- echo "LOG_LEVEL=info" >> $GITHUB_ENV
63- echo "ELASTIC_STACK_VERSION=${{ matrix.elastic_stack_version }}" >> $GITHUB_ENV
64- if [ "${{ matrix.snapshot }}" = "true" ]; then
65- echo "SNAPSHOT=true" >> $GITHUB_ENV
66- fi
67- if [ "${{ matrix.es_ssl_key_invalid }}" = "true" ]; then
68- echo "ES_SSL_KEY_INVALID=true" >> $GITHUB_ENV
69- fi
70- if [ -n "${{ matrix.es_ssl_supported_protocols }}" ]; then
71- echo "ES_SSL_SUPPORTED_PROTOCOLS=${{ matrix.es_ssl_supported_protocols }}" >> $GITHUB_ENV
72- fi
73-
74- - name : Setup Docker Buildx
75- uses : docker/setup-buildx-action@v3
76-
77- - name : Run docker-setup.sh
78- id : docker_setup
79- run : |
80- set -e
81- bash .ci/docker-setup.sh
82- continue-on-error : true
28+ uses : actions/checkout@v6
8329
84- - name : Check if test should be skipped
85- id : check_skip
86- if : steps.docker_setup.outcome == 'failure'
87- run : |
88- if [ ${{ steps.docker_setup.outputs.exit_code }} -eq 99 ]; then
89- echo "skip=true" >> $GITHUB_OUTPUT
90- echo "Test skipped - Docker image not available for this configuration"
91- else
92- exit 1
93- fi
30+ - name : Setup test environment
31+ id : setup
32+ uses : ./.github/actions/setup
33+ with :
34+ elastic_stack_version : ${{ matrix.elastic_stack_version }}
35+ snapshot : ${{ matrix.snapshot }}
36+ secure_integration : true
9437
9538 - name : Run secure integration tests
96- if : steps.check_skip.outputs.skip != 'true'
97- run : |
98- bash .ci/docker-run.sh
39+ if : steps.setup.outputs.skip != 'true'
40+ run : .ci/docker-run.sh
9941
100- - name : Cleanup
101- if : always()
102- run : |
103- cd .ci
104- docker compose down -v || true
42+ # NOTE: no cleanup needed when running on ephemeral runners
0 commit comments