-
Notifications
You must be signed in to change notification settings - Fork 39
74 lines (62 loc) · 2.03 KB
/
e2e.yaml
File metadata and controls
74 lines (62 loc) · 2.03 KB
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
68
69
70
71
72
73
74
name: e2e
on:
merge_group:
pull_request:
permissions:
contents: read
jobs:
e2e:
name: Run acceptance tests against OpenStack ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: "flamingo"
openstack_version: "stable/2025.2"
ubuntu_version: "24.04"
- name: "epoxy"
openstack_version: "stable/2025.1"
ubuntu_version: "24.04"
- name: "dalmatian"
openstack_version: "stable/2024.2"
ubuntu_version: "22.04"
env:
image_tag: virtual-registry.k-orc.cloud/ci:commit-${GITHUB_SHA::7}
runs-on: ubuntu-${{ matrix.ubuntu_version }}
steps:
- uses: actions/checkout@v6.0.1
- name: Deploy devstack
uses: gophercloud/devstack-action@60ca1042045c0c9e3e001c64575d381654ffcba1
with:
enable_workaround_docker_io: 'false'
branch: ${{ matrix.openstack_version }}
enabled_services: "openstack-cli-server,neutron-uplink-status-propagation"
conf_overrides: |
enable_plugin neutron https://opendev.org/openstack/neutron.git ${{ matrix.openstack_version }}
- name: Deploy a Kind Cluster
uses: helm/kind-action@92086f6be054225fa813e0a4b13787fc9088faab
with:
cluster_name: orc
- name: Build and push a container image to Kind
run: |
make docker-build IMG=${{ env.image_tag }}
kind load docker-image ${{ env.image_tag }} ${{ env.image_tag }} --name orc
- name: Deploy orc
run: |
kubectl config use-context kind-orc
make deploy IMG=${{ env.image_tag }} LOGLEVEL=5
- name: Run e2e tests
run: |
make test-e2e
make test-examples
- name: Generate logs on failure
run: ./hack/collectlogs
if: failure()
env:
OS_CLOUD: devstack
- name: Upload logs artifacts on failure
if: failure()
uses: actions/upload-artifact@v6
with:
name: e2e-${{ matrix.name }}-${{ github.run_id }}
path: /tmp/artifacts/*