Skip to content

Rebase on upload-artifact@v4 #34

Rebase on upload-artifact@v4

Rebase on upload-artifact@v4 #34

Workflow file for this run

name: Self-test
on:
push:
pull_request:
jobs:
selftest:
name: Self-test
runs-on: ubuntu-latest
container: quay.io/ovirt/buildcontainer:${{ matrix.tag }}
strategy:
matrix:
include:
- tag: el8stream
rpm-suffix: el8
- tag: el9stream
rpm-suffix: el9
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create sample RPM
run: |
set -x
mkdir -p test-artifacts
dnf install -y rpm-build
cd test-artifacts
rpmbuild -bb ../test-source/test.spec --define "_rpmdir $(pwd)"
mv x86_64/*.rpm .
rm -rf x86_64
- name: Upload artifacts
uses: ./
with:
directory: test-artifacts
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: rpm-${{ matrix.rpm-suffix }}
path: downloaded
- name: Check if the test.rpm is there
run:
test -f downloaded/test-0-0.x86_64.rpm