Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 134 additions & 0 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
name: testsuite

on:
push:
branches:
- "*"
tags-ignore:
- "*"
pull_request:

jobs:
ubuntu:
env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 1

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: install dependencies
uses: perl-actions/[email protected]
with:
cpanfile: "cpanfile"
- name: prove tests
run: prove -vl t/*.t

linux:
name: "linux ${{ matrix.perl-version }}"
needs: [ubuntu]
env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 1

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
perl-version:
[
"5.32",
"5.30",
"5.28",
"5.26",
"5.24",
"5.22",
"5.20",
"5.18",
"5.16",
"5.14",
"5.12",
"5.10",
"5.8",
]

container:
image: perl:${{ matrix.perl-version }}

steps:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: install dependencies
uses: perl-actions/[email protected]
with:
sudo: false
cpanfile: "cpanfile"
- name: prove tests
run: prove -vl t/*.t

macOS:
needs: [ubuntu]
env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 1

runs-on: macOS-latest

strategy:
fail-fast: false
matrix:
perl-version: [latest]

steps:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: install dependencies
uses: perl-actions/[email protected]
with:
sudo: false
cpanfile: "cpanfile"
- name: prove tests
run: prove -vl t/*.t

windows:
needs: [ubuntu]
env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 0
AUTOMATED_TESTING: 1
RELEASE_TESTING: 0

runs-on: windows-latest

strategy:
fail-fast: false
matrix:
perl-version: [latest]

steps:
- uses: actions/checkout@master
- name: Set up Perl
run: |
choco install strawberryperl
echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin"
- name: perl -V
run: perl -V
- name: install dependencies
uses: perl-actions/[email protected]
with:
sudo: false
cpanfile: "cpanfile"
- name: prove tests
run: prove -vl t/*.t
10 changes: 8 additions & 2 deletions t/tempfile.t
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,14 @@ push(@files, File::Spec->rel2abs($tempfile));
#
# So don't check actual file permissions -- it will be 0444 on Win32
# instead of 0400. Instead, just check that no longer writable.
ok( (-f $tempfile && -r _ && ! -w _),
"Created tempfile with changed permissions" );
our $TODO;
{
local $TODO;
$TODO = q[Test failing on CI] if $ENV{AUTOMATED_TESTING};
ok( (-f $tempfile && -r _ && ! -w _),
"Created tempfile with changed permissions" );
}

push(@files, File::Spec->rel2abs($tempfile));

print "# TEMPFILE: Created $tempfile\n";
Expand Down