-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (49 loc) · 1.49 KB
/
functional.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
name: Functional
on:
- pull_request
jobs:
functional:
strategy:
fail-fast: false
matrix:
name: ["master"]
openstack_version: ["master"]
ubuntu_version: ["22.04"]
include:
- name: "dolmatian"
openstack_version: "stable/2024.2"
ubuntu_version: "22.04"
- name: "caracal"
openstack_version: "stable/2024.1"
ubuntu_version: "22.04"
- name: "bobcat"
openstack_version: "stable/2023.2"
ubuntu_version: "22.04"
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Deploy OpenStack ${{ matrix.name }} and run examples
steps:
- name: Checkout the project
uses: actions/checkout@v4
- name: Deploy devstack
uses: EmilienM/[email protected]
with:
branch: ${{ matrix.openstack_version }}
enabled_services: swift
log_dir: /tmp/devstack-logs
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rust-version: stable
- name: Build the project
run: cargo build --release --all-features --all-targets
- name: Run tests
run: ./tools/test-functional.sh
- name: Generate logs
run: ./tools/collect-logs.sh
if: always()
- name: Upload logs artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: functional-${{ matrix.name }}
path: /tmp/devstack-logs/*