-
Notifications
You must be signed in to change notification settings - Fork 72
83 lines (67 loc) · 2.44 KB
/
check.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
#
# CI for this project needs to do two things:
# 1. Setup the environment and run `yarn build`
# 2. Build the distribution rpm for use in QE/OST/Integration testing
#
name: run CI on PRs
on:
pull_request:
jobs:
test_el8_offline:
name: EL8 (ovirt-engine-nodejs-modules build) - test, build and publish rpm repo for the PR
env:
OFFLINE_BUILD: 1
runs-on: ubuntu-latest
container:
#
# Note: The ovirt build container will have all of the spec's `BuildRequires`
# packages already installed. Therefore, no additional contianer setup
# is needed.
#
image: quay.io/ovirt/buildcontainer:el8stream
steps:
- name: Checkout sources
uses: ovirt/checkout-action@main
- name: Run automation/build.sh (installs build dependencies as necessary)
run: ./automation/build.sh
- name: Upload artifacts
uses: ovirt/upload-rpms-action@main
with:
directory: exported-artifacts/
test_el8_online:
name: EL8 (online build) - test and build the PR, but skip the rpm builds
runs-on: ubuntu-latest
container:
image: quay.io/ovirt/buildcontainer:el8stream
steps:
- name: Install yarn (online mode does not use ovirt-engine-nodejs-modules so yarn isn't installed)
run: |
dnf -y config-manager --add-repo https://dl.yarnpkg.com/rpm/yarn.repo
dnf -y --disablerepo='*' --enablerepo='yarn*' install yarn
- name: Checkout sources
uses: ovirt/checkout-action@main
- name: Run 'yarn install' and 'yarn build' (like a developer would)
run: |
yarn install
yarn build
#
# Note: The source tar, srpm and rpm are not needed for the online build. We only
# need 1 rpm repo artifact per distro. The rpm repo is generated from the
# offline build.
#
test_el9_offline:
name: EL9 (ovirt-engine-nodejs-modules build) - test, build and publish rpm repo for the PR
env:
OFFLINE_BUILD: 1
runs-on: ubuntu-latest
container:
image: quay.io/ovirt/buildcontainer:el9stream
steps:
- name: Checkout sources
uses: ovirt/checkout-action@main
- name: Run automation/build.sh (installs build dependencies as necessary)
run: ./automation/build.sh
- name: Upload artifacts as rpm repo
uses: ovirt/upload-rpms-action@main
with:
directory: exported-artifacts/