summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian d foy <briandfoy@pobox.com>2022-08-26 00:16:08 -0400
committerGitHub <noreply@github.com>2022-08-26 00:16:08 -0400
commit6b6c5210075b4598fff34fa5b19bc2019eccfe17 (patch)
tree2b0bf4f6fe57b3f4ac154ab8b39f61aa8497d488
parent31c2e54d385fa8807d0a57b9a825a92f66f7186d (diff)
parent508358fd61a8a9c193ad954983de6da976f36f26 (diff)
Merge pull request #6 from briandfoy/windows-2016
Update workflows (Windows 2016 is gone as of April 2022)
-rw-r--r--.github/workflows/windows.yml23
1 files changed, 18 insertions, 5 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index c6b1d09..2d89abd 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -1,5 +1,6 @@
# brian's standard GitHub Actions Windows config for Perl 5 modules
-# https://github.com/briandfoy/github_actions
+# version 20220825.001
+# https://github.com/briandfoy/github_workflows
# https://github.com/features/actions
# This file is licensed under the Artistic License 2.0
name: windows
@@ -10,6 +11,7 @@ on:
- '**'
- '!**linux**'
- '!**macos**'
+ - '!**release**'
tags-ignore:
# I tag release pushes but those should have already been tested
- 'release-*'
@@ -17,6 +19,8 @@ on:
# list all the files which are irrelevant to the tests
# non-code, support files, docs, etc
- '.appveyor.yml'
+ - '.gitattributes'
+ - '.github/workflows/release.yml'
- '.github/workflows/macos.yml'
- '.github/workflows/ubuntu.yml'
- '.gitignore'
@@ -33,16 +37,16 @@ jobs:
strategy:
matrix:
os:
- - windows-2016
- windows-2019
+ - windows-2022
steps:
- uses: actions/checkout@v2
- name: Set up Perl
run: |
choco install strawberryperl
- echo "C:\strawberry\c\bin" >> $GITHUB_PATH
- echo "C:\strawberry\perl\site\bin" >> $GITHUB_PATH
- echo "C:\strawberry\perl\bin" >> $GITHUB_PATH
+ echo "C:\strawberry\c\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+ echo "C:\strawberry\perl\site\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+ echo "C:\strawberry\perl\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Perl version
run: perl -V
# Install the dependencies, again not testing them. This installs the
@@ -51,10 +55,17 @@ jobs:
- name: Install dependencies
run: |
cpan -M https://www.cpan.org -T .
+ cpan -M https://www.cpan.org -T Test::Manifest
- name: Run tests
run: |
perl Makefile.PL
make test
+# Run author tests, but only if there's an xt/ directory
+ - name: Author tests
+ if: hashFiles('xt') != ''
+ run: |
+ cpan -M https://www.cpan.org -T Test::CPAN::Changes
+ prove -r -b xt
# Running tests in parallel should be faster, but it's also more
# tricky in cases where different tests share a feature, such as a
# file they want to write to. Parallel tests can stomp on each other.
@@ -75,10 +86,12 @@ jobs:
run: |
perl Makefile.PL
make disttest
+ make clean
# And, coverage reports
- name: Run coverage tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cpan -M https://www.cpan.org -T Devel::Cover Devel::Cover::Report::Coveralls
+ perl Makefile.PL
cover -test -report coveralls