Skip to content

Bump version and add support for dnf5 for fedora 41 #178

Bump version and add support for dnf5 for fedora 41

Bump version and add support for dnf5 for fedora 41 #178

Workflow file for this run

name: Test
on:
push:
branches:
- $default-branch
- development
- master
paths-ignore:
- '**.md'
- build_rpm.sh
- .github/workflows/publish.yml
# Run tests for any PRs
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linux:
# The host should always be linux
runs-on: ubuntu-latest
name: Running tests on ${{ matrix.distro }}
strategy:
fail-fast: false
matrix:
distro:
- 'fedora:39'
- 'fedora:40'
include:
- distro: 'fedora:40'
pre: >-
dnf install -y sudo perl-Module-Install perl-Readonly perl-Monitoring-Plugin perl-Perl-Critic rpm-build
- distro: 'fedora:39'
pre: >-
dnf install -y sudo perl-Module-Install perl-Readonly perl-Monitoring-Plugin perl-Perl-Critic rpm-build
steps:
- name: Git clone repository
uses: actions/checkout@v3
with:
submodules: true
- name: Run the tests on ${{ matrix.distro }}
env:
PRE: ${{ matrix.pre }}
run: |
echo $PRE > ./prep-cmd.sh
docker run --network host -w /check_updates -v ${PWD}:/check_updates ${{ matrix.distro }} \
/bin/sh -c 'sh ./prep-cmd.sh \
&& uname -a \
&& perl Makefile.PL \
&& make test \
&& echo "-vxl='q'" > ~/.perltidyrc \
&& ./check_distribution.sh \
&& ./build_rpm.sh'