Skip to content

Commit daec4d6

Browse files
committed
Upgrade all CPAN modules during workflows
This helps ensuring that each workflow run has the latest versions of all CPAN modules in their test environment available for early discovery of any incompatibilities.
1 parent c7e93b9 commit daec4d6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build_and_test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ jobs:
4949
cat ~/.dzil/config.ini
5050
- name: Install author dependencies
5151
run: dzil authordeps | cpanm --local-lib ${GITHUB_WORKSPACE}/local
52+
- name: Install App::cpanoutdated
53+
run: cpanm --local-lib ${GITHUB_WORKSPACE}/local App::cpanoutdated
54+
- name: Upgrade CPAN modules
55+
run: cpan-outdated -p | cpanm --local-lib ${GITHUB_WORKSPACE}/local
5256
- name: Build dist
5357
run: dzil build --no-tgz --in build
5458
- name: Create build tarball
@@ -90,6 +94,10 @@ jobs:
9094
run: cpanm --local-lib ${GITHUB_WORKSPACE}/local --installdeps --with-develop --with-all-features --with-suggests .
9195
- name: Install coverage dependencies
9296
run: cpanm --local-lib ${GITHUB_WORKSPACE}/local Devel::Cover::Report::Coveralls Pod::Coverage::CountParents
97+
- name: Install App::cpanoutdated
98+
run: cpanm --local-lib ${GITHUB_WORKSPACE}/local App::cpanoutdated
99+
- name: Upgrade CPAN modules
100+
run: cpan-outdated -p | cpanm --local-lib ${GITHUB_WORKSPACE}/local
93101
- name: Run tests with coverage
94102
env:
95103
HARNESS_PERL_SWITCHES: -MDevel::Cover=+ignore,^local/,^t/
@@ -131,6 +139,10 @@ jobs:
131139
restore-keys: cache-extra-tests-deps-${{ steps.perl.outputs.perl-hash }}-
132140
- name: Install dependencies
133141
run: cpanm --local-lib ${GITHUB_WORKSPACE}/local --installdeps --with-develop .
142+
- name: Install App::cpanoutdated
143+
run: cpanm --local-lib ${GITHUB_WORKSPACE}/local App::cpanoutdated
144+
- name: Upgrade CPAN modules
145+
run: cpan-outdated -p | cpanm --local-lib ${GITHUB_WORKSPACE}/local
134146
- name: Cache perlcritic history
135147
uses: actions/cache@v3
136148
with:

0 commit comments

Comments
 (0)