Remove spamtrap.drbl.drand.net #90
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 | |
# 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: | |
- 'centos:7' | |
- 'fedora:39' | |
- 'fedora:38' | |
include: | |
- distro: 'fedora:38' | |
pre: >- | |
dnf install -y sudo perl-Module-Install perl-Readonly perl-Monitoring-Plugin perl-Perl-Critic rpm-build perl-Net-DNS perl-Data-Validate-Domain perl-Net-IP perl-Data-Validate-IP perl-Capture-Tiny | |
- distro: 'fedora:39' | |
pre: >- | |
dnf install -y sudo perl-Module-Install perl-Readonly perl-Monitoring-Plugin perl-Perl-Critic rpm-build perl-Net-DNS perl-Data-Validate-Domain perl-Net-IP perl-Data-Validate-IP perl-Capture-Tiny | |
- distro: 'centos:7' | |
pre: >- | |
yum install -y epel-release && | |
yum install -y sudo perl-Module-Install perl-Readonly perl-Monitoring-Plugin perl-Test-Simple perl-Perl-Critic rpm-build perl-Net-DNS perl-Net-IP perl-Data-Validate-IP perl-App-cpanminus perl-Capture-Tiny && | |
sudo cpanm Data::Validate::Domain | |
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_rbl -v ${PWD}:/check_rbl ${{ matrix.distro }} \ | |
/bin/sh -c 'sh ./prep-cmd.sh \ | |
&& uname -a \ | |
&& perl Makefile.PL \ | |
&& make test \ | |
&& ./test_script.sh \ | |
&& ./check_distribution.sh \ | |
&& ./build_rpm.sh' |