@@ -2,6 +2,16 @@ name: Integration Tests
22
33on :
44 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
515 pull_request :
616 push :
717 branches :
@@ -19,23 +29,11 @@ jobs:
1929 strategy :
2030 fail-fast : false
2131 matrix :
22- openstack_version : [ "stable/2023.2" ]
32+ openstack_version : ${{ fromJSON(format('[{0}]', inputs.openstack_version || vars.OPENSTACK_VERSIONS )) }}
2333 php_version : [ 8.1 ]
24- include :
25- - name : " dalmatian"
26- openstack_version : " stable/2024.2"
27- ubuntu_version : " 22.04"
28- - name : " caracal"
29- openstack_version : " stable/2024.1"
30- ubuntu_version : " 22.04"
31- - name : " antelope"
32- openstack_version : " unmaintained/2023.1"
33- ubuntu_version : " 22.04"
34- - name : " zed"
35- openstack_version : " unmaintained/zed"
36- ubuntu_version : " 22.04"
34+ ubuntu_version : [ 22.04 ]
3735 runs-on : ubuntu-${{ matrix.ubuntu_version }}
38- 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}}
3937 steps :
4038 - uses : actions/checkout@v4
4139
@@ -120,3 +118,7 @@ jobs:
120118 with :
121119 name : failure-logs-${{ strategy.job-index }}
122120 path : failure-logs
121+
122+ - name : Setup tmate session
123+ uses : mxschmitt/action-tmate@v3
124+ if : ${{ always() && github.event_name == 'workflow_dispatch' && inputs.tmate_enabled }}
0 commit comments