-
Notifications
You must be signed in to change notification settings - Fork 201
91 lines (90 loc) · 2.35 KB
/
ci.yml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later
name: CI
on: [push, pull_request]
env:
EXPORT_DIR: exported-artifacts
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: [centos-8, centos-9, alma-9]
container: quay.io/ovirt/vdsm-test:${{ matrix.distro }}
steps:
- uses: ovirt/checkout-action@main
- name: Run linters
run: ./ci/lint.sh
test-storage-user:
env:
TRAVIS_CI: 1
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: [centos-8, centos-9, alma-9]
container:
image: quay.io/ovirt/vdsm-test:${{ matrix.distro }}
# Required to create loop devices.
options: --privileged
steps:
- uses: ovirt/checkout-action@main
- name: Run storage tests as vdsm
run: ./ci/tests-storage.sh vdsm
test-storage-root:
env:
TRAVIS_CI: 1
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: [centos-8, centos-9, alma-9]
container:
image: quay.io/ovirt/vdsm-test:${{ matrix.distro }}
# Required to create loop devices.
options: --privileged
steps:
- uses: ovirt/checkout-action@main
- name: Run storage tests as root
run: ./ci/tests-storage.sh root
tests:
env:
TRAVIS_CI: 1
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: [centos-8, centos-9, alma-9]
container:
image: quay.io/ovirt/vdsm-test:${{ matrix.distro }}
# Needed for many operations, i.e. creating bridges
options: --privileged
steps:
- uses: ovirt/checkout-action@main
- name: Run tests
run: ./ci/tests.sh
rpm:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: el8
container-name: el8stream
- name: el9
container-name: el9stream
name: ${{ matrix.name }}
container:
image: quay.io/ovirt/buildcontainer:${{ matrix.container-name }}
steps:
# we need the tags to be pulled for RPMs to have proper versions
- uses: ovirt/checkout-action@main
with:
fetch-depth: 0
- name: Build RPMs
run: ./ci/rpm.sh
- name: Upload artifacts
uses: ovirt/upload-rpms-action@main
with:
directory: ${{ env.EXPORT_DIR }}