Fedora 40 #175
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: 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' |