-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use actions-setup-perl instead of incorrectly doing it ourselves, so …
…we actually get the versions of perl that we want; 5.24 and below use a weird make
- Loading branch information
Showing
1 changed file
with
30 additions
and
31 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,37 @@ | ||
# cribbed from https://stackoverflow.com/questions/72367353/testing-perl-on-windows-with-github-actions | ||
|
||
on: [push, pull_request] | ||
name: Windows | ||
|
||
--- | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up perl | ||
uses: shogo82148/actions-setup-perl@v1 | ||
with: | ||
distribution: strawberry | ||
perl-version: ${{ matrix.perl-version }} | ||
- name: perl -V | ||
run: perl -V | ||
- name: Install Dependencies | ||
run: | | ||
cpanm ExtUtils::MakeMaker Test::Pod Test::Pod::Coverage || cat $HOME/.cpanm/work/*/build.log | ||
cpanm --installdeps . || cat $HOME/.cpanm/work/*/build.log | ||
- name: Run Tests | ||
run: | | ||
perl Makefile.PL | ||
if( "${{ matrix.perl-version }}" -lt "5.26" ) { dmake test TEST_VERBOSE=1 } else { gmake test TEST_VERBOSE=1 } | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
perl-version: | ||
- '5.20' | ||
- '5.22' | ||
- '5.24' | ||
- '5.26' | ||
- '5.28' | ||
- '5.30' | ||
- '5.32' | ||
- '5.34' | ||
- 'latest' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Perl | ||
run: | | ||
choco install strawberryperl | ||
echo "C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" >> $GITHUB_PATH | ||
- name: perl -V | ||
run: perl -V | ||
- name: Install Dependencies | ||
run: | | ||
cpanm ExtUtils::MakeMaker Test::Pod Test::Pod::Coverage || cat $HOME/.cpanm/work/*/build.log | ||
cpanm --installdeps . || cat $HOME/.cpanm/work/*/build.log | ||
- name: Run Tests | ||
run: | | ||
perl Makefile.PL | ||
make test TEST_VERBOSE=1 | ||
- '5.20' | ||
- '5.22' | ||
- '5.24' | ||
- '5.26' | ||
- '5.28' | ||
- '5.30' | ||
- '5.32' | ||
- latest | ||
name: Windows | ||
on: | ||
- push | ||
- pull_request |