Fixes to some test steps

- Add in the path to the fake xterm script (as docker doesnt have xterm)
- Add in perl 5.41 for testing
- Log environment info and perl version in test output
- Ensure the manifesst file is built before testing starts
This commit is contained in:
Duncan Ferguson 2024-10-15 18:02:33 +01:00
parent a5504bc2fa
commit fbaafc74be

View file

@ -13,6 +13,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
perl-version: perl-version:
- '5.41'
- '5.40' - '5.40'
- '5.38' - '5.38'
- '5.36' - '5.36'
@ -37,11 +38,19 @@ jobs:
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@main
- name: Amend PATH
run: |
echo "${{ env.GITHUB_WORKSPACE }}/t/bin" >> $GITHUB_PATH
- name: Current env
run: env
- name: Perl info
run: perl -V
- name: Regular tests - name: Regular tests
if: ${{ !matrix.coverage }} if: ${{ !matrix.coverage }}
run: | run: |
cpanm -n -f Pod::Coverage::TrustPod Test::Perl::Critic Test::Pod::Coverage Test::Pod Test::Trap cpanm -n -f Pod::Coverage::TrustPod Test::Perl::Critic Test::Pod::Coverage Test::Pod Test::Trap
perl Build.PL perl Build.PL
perl Build manifest
perl Build test perl Build test
env: env:
RELEASE_TESTING: 1 RELEASE_TESTING: 1
@ -51,6 +60,7 @@ jobs:
run: | run: |
cpanm -n -f Pod::Coverage::TrustPod Test::Perl::Critic Test::Pod::Coverage Test::Pod Test::Trap cpanm -n -f Pod::Coverage::TrustPod Test::Perl::Critic Test::Pod::Coverage Test::Pod Test::Trap
perl Build.PL perl Build.PL
perl Build manifest
perl Build test perl Build test
env: env:
COVERAGE: 1 COVERAGE: 1