Skip to content

Commit 367ebf2

Browse files
committed
Add cpanfile, MANIFEST.SKIP, GitHub workflows
1 parent fd8eea4 commit 367ebf2

File tree

5 files changed

+72
-2
lines changed

5 files changed

+72
-2
lines changed

.github/workflows/tester.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
9+
jobs:
10+
matrix-tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
perl-version:
16+
- "5.26.0"
17+
- "5.34.0"
18+
- "5.40.1"
19+
name: Perl ${{ matrix.perl-version }}
20+
steps:
21+
- uses: shogo82148/actions-setup-perl@v1
22+
with:
23+
perl-version: ${{ matrix.perl-version }}
24+
- uses: actions/checkout@v4
25+
- name: Regular tests
26+
run: |
27+
cpanm --installdeps --notest .
28+
perl Makefile.PL
29+
make
30+
make test
31+
32+
author-tests:
33+
runs-on: ubuntu-latest
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
perl-version:
38+
- 'latest'
39+
container:
40+
image: perldocker/perl-tester:${{ matrix.perl-version }} # https://hub.docker.com/r/perldocker/perl-tester
41+
name: Author ${{ matrix.perl-version }}
42+
steps:
43+
- uses: actions/checkout@v4
44+
- name: Prove with author tests
45+
run: |
46+
cpanm --installdeps .
47+
prove -vl t xt

MANIFEST

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ xt/changes.t
1212
xt/manifest.t
1313
xt/pod.t
1414
xt/pod-coverage.t
15-
xt/version.t
15+
xt/version.t

MANIFEST.SKIP

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
^MANIFEST\.SKIP$
2+
^Makefile(?:\.old)?$
3+
^\.git/
4+
^\.gitignore$
5+
^\.github/workflows/
6+
^blib/
7+
^MYMETA\.(?:json|yml)$
8+
^pm_to_blib$
9+
^cpanfile$
10+
~$

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ my %WriteMakefileArgs = (
2121
},
2222
TEST_REQUIRES => {
2323
'Test2::V0' => '0',
24+
'FindBin' => 0,
2425
},
2526
PREREQ_PM => {
2627
'Moo' => 0,
2728
'namespace::clean' => 0,
2829
'List::Util' => 0,
29-
'FindBin' => 0,
3030
'strict' => 0,
3131
'warnings' => 0,
3232
'experimental' => 0,

cpanfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
requires 'Moo' => 0;
2+
requires 'namespace::clean' => 0;
3+
requires 'List::Util' => 0;
4+
requires 'strict' => 0;
5+
requires 'warnings' => 0;
6+
requires 'experimental' => 0;
7+
8+
on configure => sub { requires 'ExtUtils::MakeMaker' => 0 };
9+
10+
on test => sub {
11+
requires 'Test2::V0' => 0;
12+
requires 'FindBin' => 0;
13+
};

0 commit comments

Comments
 (0)