Skip to content

Commit

Permalink
Test Redhat variations in containers
Browse files Browse the repository at this point in the history
  • Loading branch information
DrHyde committed May 19, 2024
1 parent f7fd4e4 commit 98a39e6
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions .github/workflows/redhat.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
name: Redhat Linux
name: Redhat variations
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
- matrix.container redhat/ubi9
matrix.name RHEL
- matrix.container centos
matrix.name Centos
- matrix.container almalinux
matrix.name Alma
- matrix.container fedora:latest
matrix.name Fedora
- matrix.container rockylinux
matrix.name Rocky
container:
image: redhat/ubi9
image: ${{ matrix.container}}
steps:
- uses: actions/checkout@v4
- name: Test on Redhat
run: |
cat /etc/os-release
yum install -y make git perl gcc
yes|perl -MCPAN -e 'install App::cpanminus'
yes|perl -MCPAN -e 'install local::lib'
yes|perl -MCPAN -e 'install Expect'
export PERL5OPT=-Mlocal::lib
/usr/local/bin/cpanm --installdeps .
perl makefile-expect-driver.pl Linux Unix OSFeatures::POSIXShellRedirection HWCapabilities::Int64 Linux::Redhat Linux::RHEL
make test
- uses: actions/checkout@v4
- name: Test on ${{ matrix.name }} - ${{ matrix.container }}
run: |
cat /etc/os-release
yum install -qy make git perl gcc
yes|perl -MCPAN -e 'install qw(App::cpanminus local::lib Expect)'
export PERL5OPT=-Mlocal::lib
/usr/local/bin/cpanm --installdeps .
perl makefile-expect-driver.pl Linux Unix OSFeatures::POSIXShellRedirection HWCapabilities::Int64 Linux::Redhat Linux::${{ matrix.name }}
make test

0 comments on commit 98a39e6

Please sign in to comment.