-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test Redhat variations in containers
- Loading branch information
Showing
1 changed file
with
25 additions
and
14 deletions.
There are no files selected for viewing
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
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 |