-
Notifications
You must be signed in to change notification settings - Fork 9
88 lines (85 loc) · 3 KB
/
gating.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: "Gating (deps, build, smoke)"
on:
push:
branches: ["main", "*"]
pull_request:
branches: ["main"]
jobs:
test-centos-stream-9:
name: Test on CentOS Stream 9 (Container)
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream9
steps:
- name: Install Deps
run: dnf install -y python3-devel python3-setuptools rpm-build
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: python3 setup.py bdist_rpm --requires=python3-lxml,python3-jinja2 --build-requires=python3-devel,python3-setuptools
- name: RPM install
run: dnf install -y ./dist/openscap-report-*.noarch.rpm
- name: Test parameter -h
run: oscap-report -h
- name: Test of the basic function
working-directory: ./tests
run: ./smoke.sh
test-rhel-8:
name: Test on RHEL 8 (Container)
runs-on: ubuntu-latest
container:
image: registry.access.redhat.com/ubi8/ubi:latest
steps:
- name: Install Deps
run: dnf install -y python3 python3-devel python3-setuptools rpm-build
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: python3 setup.py bdist_rpm --requires=python3-lxml,python3-jinja2 --build-requires=python3-devel,python3-setuptools
- name: RPM install
run: dnf install -y ./dist/openscap-report-*.noarch.rpm
- name: Test parameter -h
run: oscap-report -h
- name: Test of the basic function
working-directory: ./tests
run: ./smoke.sh
test-fedora-latest:
name: Test on Fedora latest (Container)
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Install Deps
run: dnf install -y python3-devel python3-setuptools rpm-build
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: python3 setup.py bdist_rpm --requires=python3-lxml,python3-jinja2 --build-requires=python3-devel,python3-setuptools
- name: RPM install
run: dnf install -y ./dist/openscap-report-*.noarch.rpm
- name: Test parameter -h
run: oscap-report -h
- name: Test of the basic function
working-directory: ./tests
run: ./smoke.sh
test-fedora-rawhide:
name: Test on Fedora Rawhide (Container)
runs-on: ubuntu-latest
container:
image: fedora:rawhide
steps:
- name: Install Deps
run: dnf install -y python3-devel python3-setuptools rpm-build
- name: Fix missing Deps
run: dnf install -y python3-devel python3-setuptools rpm-build
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: python3 setup.py bdist_rpm --requires=python3-lxml,python3-jinja2 --build-requires=python3-devel,python3-setuptools
- name: RPM install
run: dnf install -y ./dist/openscap-report-*.noarch.rpm
- name: Test parameter -h
run: oscap-report -h
- name: Test of the basic function
working-directory: ./tests
run: ./smoke.sh