forked from gophercloud/gophercloud
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (67 loc) · 2.19 KB
/
functional-basic.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
name: functional-basic
on:
pull_request:
paths-ignore:
- 'docs/**'
- '**.md'
- '**.gitignore'
- '**LICENSE'
jobs:
functional-basic:
strategy:
fail-fast: false
matrix:
name: ["master"]
openstack_version: ["master"]
ubuntu_version: ["22.04"]
include:
- name: "bobcat"
openstack_version: "stable/2023.2"
ubuntu_version: "22.04"
- name: "antelope"
openstack_version: "stable/2023.1"
ubuntu_version: "22.04"
- name: "zed"
openstack_version: "stable/zed"
ubuntu_version: "20.04"
- name: "yoga"
openstack_version: "stable/yoga"
ubuntu_version: "20.04"
- name: "xena"
openstack_version: "stable/xena"
ubuntu_version: "20.04"
- name: "wallaby"
openstack_version: "stable/wallaby"
ubuntu_version: "20.04"
- name: "victoria"
openstack_version: "stable/victoria"
ubuntu_version: "20.04"
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Deploy OpenStack ${{ matrix.name }} with defaults and run basic acceptance tests
steps:
- name: Checkout Gophercloud
uses: actions/checkout@v3
- name: Deploy devstack
uses: EmilienM/devstack-action@c41f86d8df58b53c55f070207b6dfce656788cfd
with:
branch: ${{ matrix.openstack_version }}
enabled_services: 's-account,s-container,s-object,s-proxy'
- name: Checkout go
uses: actions/setup-go@v4
with:
go-version: '^1.15'
- name: Run Gophercloud acceptance tests
run: ./script/acceptancetest
env:
DEVSTACK_PATH: ${{ github.workspace }}/devstack
ACCEPTANCE_TESTS_FILTER: '^internal/acceptance/openstack$'
OS_BRANCH: ${{ matrix.openstack_version }}
- name: Generate logs on failure
run: ./script/collectlogs
if: failure()
- name: Upload logs artifacts on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: functional-basic-${{ matrix.name }}
path: /tmp/devstack-logs/*