Skip to content

Commit

Permalink
Use Github Actions' native support for Windows testing instead of App…
Browse files Browse the repository at this point in the history
…veyor
  • Loading branch information
DrHyde committed Feb 1, 2023
1 parent df231fd commit 6aed62a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 24 deletions.
15 changes: 0 additions & 15 deletions .appveyor.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/windows.yml
@@ -0,0 +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
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@v2
- 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
15 changes: 6 additions & 9 deletions Makefile.PL
@@ -1,15 +1,12 @@
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'Class::CanBeA',
NAME => 'Class::CanBeA',
LICENSE => 'open_source',
META_MERGE => {
license => 'open_source',
resources => {
repository => 'https://github.com/DrHyde/perl-modules-Class-CanBeA',
bugtracker => 'https://github.com/DrHyde/perl-modules-Class-CanBeA/issues'
repository => 'https://github.com/DrHyde/perl-modules-Class-CanBeA',
bugtracker => 'https://github.com/DrHyde/perl-modules-Class-CanBeA/issues'
}
},
VERSION_FROM => 'lib/Class/CanBeA.pm',
PREREQ_PM => {
# Storable => 2.07,
}
);
VERSION_FROM => 'lib/Class/CanBeA.pm',
);

0 comments on commit 6aed62a

Please sign in to comment.