Skip to content

Commit 83ea491

Browse files
committed
Switch to github actions for CI testing
1 parent ae385a0 commit 83ea491

File tree

9 files changed

+88
-138
lines changed

9 files changed

+88
-138
lines changed

.github/workflows/linux.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: linux
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags-ignore:
8+
- '*'
9+
pull_request:
10+
11+
jobs:
12+
perl:
13+
env:
14+
PERL_USE_UNSAFE_INC: 0
15+
AUTHOR_TESTING: 1
16+
AUTOMATED_TESTING: 1
17+
RELEASE_TESTING: 1
18+
19+
runs-on: ubuntu-latest
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
perl-version: ["5.30", "5.28", "5.26", "5.24", "5.22", "5.20", "5.18", "5.16", "5.14", "5.12", "5.10"]
25+
26+
container:
27+
image: perldocker/perl-tester:${{ matrix.perl-version }}
28+
29+
steps:
30+
- uses: actions/checkout@v1
31+
- name: perl -V
32+
run: perl -V
33+
- name: Install Dependencies
34+
run: cpm install -g --show-build-log-on-failure
35+
- name: Makefile.PL
36+
run: perl Makefile.PL
37+
- name: make test
38+
run: make test

.github/workflows/macos.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: macos
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags-ignore:
8+
- '*'
9+
pull_request:
10+
11+
jobs:
12+
perl:
13+
env:
14+
PERL_USE_UNSAFE_INC: 0
15+
AUTHOR_TESTING: 1
16+
AUTOMATED_TESTING: 1
17+
RELEASE_TESTING: 1
18+
19+
runs-on: macOS-latest
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
perl-version: [latest]
25+
26+
steps:
27+
- uses: actions/checkout@v1
28+
- name: perl -V
29+
run: perl -V
30+
- name: Install Dependencies
31+
run: curl -sL https://git.io/cpm | perl - install --no-test --without-recommends -g --show-build-log-on-failure
32+
- name: Makefile.PL
33+
run: perl Makefile.PL
34+
- name: make test
35+
run: make test

.travis.yml

-39
This file was deleted.

MANIFEST

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ lib/Test/MockFile/DirHandle.pm
55
lib/Test/MockFile/FileHandle.pm
66
Makefile.PL
77
MANIFEST This list of files
8-
META.json
9-
META.yml
108
README
119
t/00-load.t
1210
t/file_access_hooks.t

MANIFEST.SKIP

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
^Test-MockFile-\d\.\d+/
2020
^cpanfile$
2121
^.perltidyrc$
22+
^META\.

META.json

-58
This file was deleted.

META.yml

-32
This file was deleted.

Makefile.PL

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use 5.006;
1+
use 5.010;
22
use strict;
33
use warnings;
44
use ExtUtils::MakeMaker;

cpanfile

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
requires 'Test2::Bundle::Extended';
2-
requires 'Test2::Tools::Explain';
3-
requires 'Test2::Plugin::NoWarnings';
4-
requires 'Test::CheckManifest';
5-
requires 'Overload::FileCheck';
6-
requires 'File::Slurper';
1+
# kind of duplicate of Makefile.PL
2+
# but convenient for Continuous Integration
3+
4+
on 'test' => sub {
5+
requires 'Test::More' => 0;
6+
requires 'Test2::Bundle::Extended' => 0;
7+
requires 'Test2::Tools::Explain' => 0;
8+
requires 'Test2::Plugin::NoWarnings' => 0;
9+
requires 'File::Slurper' => 0;
10+
requires 'Overload::FileCheck' => '0.007';
11+
requires 'Test::Pod::Coverage' => 0;
12+
requires 'Test::Pod' => 0;
13+
};

0 commit comments

Comments
 (0)