Convert all tests to use Test::More rather than Test.pm #43
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: linux | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
jobs: | |
perl: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
perl-version: | |
- '5.40' | |
- '5.32' | |
# - '5.30' | |
# - '5.28' | |
# - '5.26' | |
# - '5.24' | |
# - '5.22' | |
# - '5.20' | |
# - '5.18' | |
# - '5.16' | |
# - '5.14' | |
# - '5.12' | |
# - '5.10' | |
container: | |
image: perl:${{ matrix.perl-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: perl -V | |
run: perl -V | |
- name: Install Dependencies | |
run: cpanm -n --installdeps . | |
- name: Create a non-root user called "runner" | |
run: adduser --disabled-password --gecos '' runner | |
- name: Run Tests as non-root user "runner" | |
run: | | |
chown -R runner:runner . | |
runuser runner -c 'perl Makefile.PL' | |
runuser runner -c 'make' | |
runuser runner -c 'make test' |