Skip to content

ci: matrix introduced to ci and copr fix #253

ci: matrix introduced to ci and copr fix

ci: matrix introduced to ci and copr fix #253

Workflow file for this run

#
# 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_offline:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: centos-stream9
container-name: el9stream
- name: centos-stream10
container-name: el10stream
name: ${{ matrix.name }} (ovirt-engine-nodejs-modules build) - test, build and publish rpm repo for the PR
env:
OFFLINE_BUILD: 1
container:
image: quay.io/ovirt/buildcontainer:${{ matrix.container-name }}
steps:
- name: Checkout sources
uses: ovirt/checkout-action@main
- name: install rpmlint
run: |
dnf -y install epel-release
dnf -y install rpmlint
- 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/
test_online:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: centos-stream9
container-name: el9stream
- name: centos-stream10
container-name: el10stream
name: ${{ matrix.name }} (online build) test and build the PR, but skip the rpm builds
container:
image: quay.io/ovirt/buildcontainer:${{ matrix.container-name }}
steps:
- name: Install yarn (online mode does not use ovirt-engine-nodejs-modules so yarn isn't installed)
run: |
dnf -y install nodejs
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