-
Notifications
You must be signed in to change notification settings - Fork 92
66 lines (59 loc) · 1.85 KB
/
build.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
name: Build
on:
push:
branches:
- ovirt-ansible-collection-2.y
pull_request:
branches:
- ovirt-ansible-collection-2.y
workflow_dispatch:
jobs:
sanity_test:
runs-on: ubuntu-latest
name: ansible-test docker
steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Build the project
run: ./build.sh build ovirt /tmp
- name: Run ansible-test sanity
run: |
cd /tmp/ansible_collections/ovirt/ovirt/
ANSIBLE_TEST_PREFER_PODMAN=1 ansible-test sanity --docker
- name: Run ansible-lint 5.0.0
run: |
cd /tmp/ansible_collections/ovirt/ovirt/
pip3 install install pycodestyle pylint==2.4.4 voluptuous yamllint rstcheck antsibull-changelog "rich<11.0.0" "ansible-lint<5.0.0" cryptography
ansible-lint roles/* -x 204
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: centos-stream-8
shortcut: cs8
container-name: el8stream
name: ${{ matrix.name }}
container:
image: quay.io/ovirt/buildcontainer:${{ matrix.container-name }}
steps:
- name: Install python3.8
if: ${{ matrix.shortcut == 'cs8' }}
run: yum install python38 -y
- name: Install python3.8 modules
run: |
dnf install -y python38-devel python38-pip
pip-3.8 install pycodestyle pylint voluptuous yamllint "rstcheck<3.5.0" antsibull-changelog "rich<11.0.0" "ansible-lint>=6.0.0,<7.0.0" cryptography
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Run build.sh
run: .automation/build.sh
- name: Upload artifacts
uses: ovirt/upload-rpms-action@main
with:
directory: exported-artifacts