diff --git a/.github/workflows/perl-test.yml b/.github/workflows/perl-test.yml new file mode 100644 index 0000000..4a55007 --- /dev/null +++ b/.github/workflows/perl-test.yml @@ -0,0 +1,34 @@ + +name: Perl Tests + +on: + push: + pull_request: + branches: + - 'master' + - 'branch-*' + +jobs: + perl_tester: + runs-on: ubuntu-latest + name: "perl v${{ matrix.perl-version }}" + + strategy: + fail-fast: false + matrix: + perl-version: + - "5.16" # CentOS 7 + - "5.26" # Ubuntu 18.04 + - "5.30" # Ubuntu 20.04 + + container: + image: perldocker/perl-tester:${{ matrix.perl-version }} + + steps: + - uses: actions/checkout@v2 + - name: uses install-with-cpanm + uses: perl-actions/install-with-cpanm@v1 + with: + cpanfile: "cpanfile" + sudo: false + - run: perl -Mstrict -Mdiagnostics -cw privacyidea_radius.pm diff --git a/cpanfile b/cpanfile new file mode 100644 index 0000000..f65eccd --- /dev/null +++ b/cpanfile @@ -0,0 +1,7 @@ +requires 'LWP'; +requires 'Config::IniFiles'; +requires 'Data::Dump'; +requires 'Try::Tiny'; +requires 'JSON'; +requires 'Time::HiRes'; +requires 'URI::Encode';