Bump shogo82148/actions-setup-perl in the minor-and-patch group #145
This file contains hidden or 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: | |
| - 'master' | |
| tags-ignore: | |
| - '*' | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| perl: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| perl-version: | |
| - '5.42' | |
| - '5.40' | |
| - '5.38' | |
| - '5.36' | |
| - '5.34' | |
| - '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: perldocker/perl-tester:${{ matrix.perl-version }} | |
| steps: | |
| - uses: actions/checkout@v7.0.0 | |
| - name: perl -V | |
| run: perl -V | |
| - uses: perl-actions/setup-cpm@v1 | |
| with: | |
| version: compat | |
| - name: Install Dependencies | |
| run: cpm install -g --cpanfile cpanfile --with-configure --with-test | |
| - name: Create a non-root user called "runner" | |
| # use the low-level useradd: the adduser wrapper is absent from some | |
| # perldocker/perl-tester images (e.g. 5.40), but useradd ships in all | |
| run: useradd -m 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' |