Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the workflow for automated testing #1287

Merged
merged 5 commits into from
Dec 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/make-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'

jobs:
make-check:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- 'macos-latest'
- 'ubuntu-latest'
perl:
- '5.34'
- '5.32'
- '5.30'
#- '5.28'
- '5.26'
- '5.24'
#- '5.22'
#- '5.20' # Fails with ubuntu: See below.
#- '5.18'
- '5.16'
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies for Linux
if: runner.os == 'Linux'
run: |
sudo apt update -y
sudo apt install -y gettext
- name: Install dependencies for macOS
if: runner.os == 'macOS'
run: |
brew install automake
#XXX This doesn't work, though I don't know why.
#- name: Workaround for rt.perl.org#116989
# if: runner.os == 'Linux' && matrix.perl == '5.20'
# # For Crypt::OpenSSL::X509
# run: >
# echo PERL_CPANM_OPT=--configure-args="CCFLAGS='-Wno-error=unused-function'"
# >> $GITHUB_ENV
- name: Workaround for macOS
if: runner.os == 'macOS'
# For Crypt::SMIME
run: >
echo "PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig"
>> $GITHUB_ENV
- name: Set up Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
install-modules-with: cpanm
install-modules-args: >
--with-develop
--with-feature=Data::Password --with-feature=ldap
--with-feature=safe-unicode --with-feature=smime
--with-feature=soap --with-feature=sqlite
- name: Run tests
run: |
if [ "$(uname -s)" = "Linux" ]; then
# Workaround to avoid reference to older libcrypto by perl binary
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
fi
autoreconf -i
./configure
cd src; make; cd ..
make check-local TEST_FILES='xt/perltidy.t' || true
make check-local
shell: bash