ci: bump actions/checkout from 3 to 4 #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
# at 8:00 every 1st of the month | |
- cron: 0 8 1 * * | |
jobs: | |
test: | |
name: "📦 Build & install" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
container: | |
- "registry.fedoraproject.org/fedora:latest" | |
- "registry.fedoraproject.org/fedora:rawhide" | |
- "quay.io/centos/centos:stream8" | |
- "quay.io/centos/centos:stream9" | |
container: | |
image: ${{ matrix.container }} | |
steps: | |
- name: Base setup | |
run: | | |
dnf --setopt install_weak_deps=False install -y \ | |
dnf-plugins-core \ | |
git-core \ | |
rpm-build \ | |
sudo | |
dnf remove -y subscription-manager-rhsm-certificates | |
git config --global user.email "[email protected]" | |
git config --global user.name "Github Actions" | |
- name: Setup EPEL 8 | |
if: ${{ endsWith(matrix.container, 'stream8') }} | |
run: | | |
dnf config-manager --set-enabled powertools | |
dnf install -y epel-release epel-next-release | |
- name: Setup EPEL 9 | |
if: ${{ endsWith(matrix.container, 'stream9') }} | |
run: | | |
dnf config-manager --set-enabled crb | |
dnf install -y epel-release epel-next-release | |
- name: Install tito | |
run: | | |
dnf --setopt install_weak_deps=False install -y \ | |
tito | |
- uses: actions/checkout@v4 | |
# This step is required so Tito can properly read git history | |
# See https://github.com/actions/checkout/issues/766 | |
- name: Trust git repository path | |
run: | | |
git config --global --add safe.directory '*' | |
- name: Install RPM build dependencies | |
run: | | |
dnf --setopt install_weak_deps=False builddep -y \ | |
--spec ./subscription-manager-rhsm-certificates.spec | |
- name: tito build --install | |
run: | | |
mkdir tito | |
tito build --offline --test --rpm --install --output=tito | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts | |
path: | | |
tito/ |