Skip to content

Commit 2d53cce

Browse files
authored
Merge pull request #18 from EmilienM/stable-testing
CI: Add jobs for stable OpenStack versions
2 parents 9650937 + 61ac829 commit 2d53cce

File tree

2 files changed

+43
-4
lines changed

2 files changed

+43
-4
lines changed

.github/workflows/with-defaults.yml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,46 @@ on:
44

55
jobs:
66
with_defaults:
7-
runs-on: ubuntu-latest
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
name: ["master"]
11+
openstack_version: ["master"]
12+
ubuntu_version: ["22.04"]
13+
include:
14+
- name: "bobcat"
15+
openstack_version: "stable/2023.2"
16+
ubuntu_version: "22.04"
17+
- name: "antelope"
18+
openstack_version: "stable/2023.1"
19+
ubuntu_version: "22.04"
20+
- name: "zed"
21+
openstack_version: "stable/zed"
22+
ubuntu_version: "20.04"
23+
- name: "yoga"
24+
openstack_version: "stable/yoga"
25+
ubuntu_version: "20.04"
26+
- name: "xena"
27+
openstack_version: "stable/xena"
28+
ubuntu_version: "20.04"
29+
- name: "wallaby"
30+
openstack_version: "stable/wallaby"
31+
ubuntu_version: "20.04"
32+
- name: "victoria"
33+
openstack_version: "stable/victoria"
34+
ubuntu_version: "20.04"
35+
runs-on: ubuntu-${{ matrix.ubuntu_version }}
836
name: A job to deploy devstack with defaults
937
steps:
10-
- uses: actions/checkout@v4
11-
- id: devstack-action
38+
- name: Checkout devstack-action
39+
uses: actions/checkout@v4
40+
- name: Deploy devstack
1241
uses: ./
42+
with:
43+
branch: ${{ matrix.openstack_version }}
1344
- name: Upload logs artifacts on failure
1445
if: failure()
1546
uses: actions/upload-artifact@v4
1647
with:
17-
name: devstack-logs
48+
name: functional-basic-${{ matrix.name }}
1849
path: /tmp/devstack-logs/*

action.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ runs:
7373
if [[ "${{ inputs.conf_overrides }}" != "" ]]; then
7474
echo "${{ inputs.conf_overrides }}" >> local.conf
7575
fi
76+
77+
# Overriding target release for unmaintained versions
78+
# otherwide devstack will fail to clone some repos.
79+
TARGET_BRANCH=${{ inputs.branch }}
80+
if [[ "${{ inputs.branch }}" == *"yoga"* ]]; then
81+
TARGET_BRANCH="yoga-eom"
82+
fi
83+
echo "TARGET_BRANCH=${TARGET_BRANCH}" >> local.conf
7684
working-directory: ./devstack
7785
shell: bash
7886
- name: Run devstack

0 commit comments

Comments
 (0)