@@ -2,6 +2,16 @@ name: Integration Tests
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ tmate_enabled :
7
+ type : boolean
8
+ description : ' Run the build with tmate debugging enabled'
9
+ required : false
10
+ default : false
11
+ openstack_version :
12
+ description : ' Comma-separated list of Openstack versions e.g. "stable/2025.1", "unmaintained/zed"'
13
+ required : false
14
+ default : false
5
15
pull_request :
6
16
push :
7
17
branches :
@@ -19,26 +29,11 @@ jobs:
19
29
strategy :
20
30
fail-fast : false
21
31
matrix :
22
- openstack_version : [ "stable/2025.1" ]
32
+ openstack_version : ${{ fromJSON(format('[{0}]', inputs.openstack_version || env.OPENSTACK_VERSIONS )) }}
23
33
php_version : [ 8.1 ]
24
- include :
25
- - name : " epoxy"
26
- openstack_version : " stable/2025.1"
27
- ubuntu_version : " 22.04"
28
- - name : " dalmatian"
29
- openstack_version : " stable/2024.2"
30
- ubuntu_version : " 22.04"
31
- - name : " caracal"
32
- openstack_version : " stable/2024.1"
33
- ubuntu_version : " 22.04"
34
- - name : " antelope"
35
- openstack_version : " unmaintained/2023.1"
36
- ubuntu_version : " 22.04"
37
- - name : " zed"
38
- openstack_version : " unmaintained/zed"
39
- ubuntu_version : " 22.04"
34
+ ubuntu_version : [ 22.04 ]
40
35
runs-on : ubuntu-${{ matrix.ubuntu_version }}
41
- name : Deploy OpenStack ${{ matrix.name }} and run integration tests with php ${{matrix.php_version}}
36
+ name : Deploy OpenStack ${{ matrix.openstack_version }} and run integration tests with php ${{matrix.php_version}}
42
37
steps :
43
38
- uses : actions/checkout@v4
44
39
@@ -123,3 +118,7 @@ jobs:
123
118
with :
124
119
name : failure-logs-${{ strategy.job-index }}
125
120
path : failure-logs
121
+
122
+ - name : Setup tmate session
123
+ uses : mxschmitt/action-tmate@v3
124
+ if : ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.tmate_enabled }}
0 commit comments