Merge pull request #6 from atoomic/ci
Add basic GitHub CI workflow
ℕicolas ℝ authored 2 years ago
GitHub committed 2 years ago
|
0 |
name: testsuite
|
|
1 |
|
|
2 |
on:
|
|
3 |
push:
|
|
4 |
branches:
|
|
5 |
- "*"
|
|
6 |
tags-ignore:
|
|
7 |
- "*"
|
|
8 |
pull_request:
|
|
9 |
|
|
10 |
jobs:
|
|
11 |
ubuntu:
|
|
12 |
env:
|
|
13 |
PERL_USE_UNSAFE_INC: 0
|
|
14 |
AUTHOR_TESTING: 1
|
|
15 |
AUTOMATED_TESTING: 1
|
|
16 |
RELEASE_TESTING: 1
|
|
17 |
|
|
18 |
runs-on: ubuntu-latest
|
|
19 |
|
|
20 |
steps:
|
|
21 |
- uses: actions/checkout@v2
|
|
22 |
- run: perl -V
|
|
23 |
- name: install dependencies
|
|
24 |
uses: perl-actions/install-with-cpm@stable
|
|
25 |
with:
|
|
26 |
cpanfile: "cpanfile"
|
|
27 |
- name: prove tests
|
|
28 |
run: prove -vl t/*.t
|
|
29 |
|
|
30 |
linux:
|
|
31 |
name: "linux ${{ matrix.perl-version }}"
|
|
32 |
needs: [ubuntu]
|
|
33 |
env:
|
|
34 |
PERL_USE_UNSAFE_INC: 0
|
|
35 |
AUTHOR_TESTING: 1
|
|
36 |
AUTOMATED_TESTING: 1
|
|
37 |
RELEASE_TESTING: 1
|
|
38 |
|
|
39 |
runs-on: ubuntu-latest
|
|
40 |
|
|
41 |
strategy:
|
|
42 |
fail-fast: false
|
|
43 |
matrix:
|
|
44 |
perl-version:
|
|
45 |
[
|
|
46 |
"5.34",
|
|
47 |
"5.32",
|
|
48 |
"5.30",
|
|
49 |
"5.28",
|
|
50 |
"5.26",
|
|
51 |
"5.24",
|
|
52 |
"5.22",
|
|
53 |
"5.20",
|
|
54 |
"5.18",
|
|
55 |
"5.16",
|
|
56 |
"5.14",
|
|
57 |
"5.12",
|
|
58 |
"5.10",
|
|
59 |
"5.8",
|
|
60 |
]
|
|
61 |
|
|
62 |
container:
|
|
63 |
image: perldocker/perl-tester:${{ matrix.perl-version }}
|
|
64 |
|
|
65 |
steps:
|
|
66 |
- uses: actions/checkout@v2
|
|
67 |
- name: perl -V
|
|
68 |
run: perl -V
|
|
69 |
- name: install dependencies
|
|
70 |
uses: perl-actions/install-with-cpm@stable
|
|
71 |
with:
|
|
72 |
sudo: false
|
|
73 |
cpanfile: "cpanfile"
|
|
74 |
args: "--with-recommends --with-suggests"
|
|
75 |
- run: perl Makefile.PL
|
|
76 |
- run: make
|
|
77 |
- run: make test
|
|
0 |
#!perl
|
|
1 |
|
|
2 |
requires "Carp" => "0";
|
|
3 |
requires "Memoize" => "0";
|
|
4 |
requires "ExtUtils::MakeMaker" => "0";
|
|
5 |
|
|
6 |
on "test" => sub {
|
|
7 |
requires "Test::More" => "0";
|
|
8 |
};
|
|
9 |
|
|
10 |
on "recommends" => sub {
|
|
11 |
requires "Test::CPAN::Meta" => "0";
|
|
12 |
requires "Test::NoTabs" => "0";
|
|
13 |
requires "Test2::Bundle::Extended" => "0";
|
|
14 |
requires "Test2::Tools::Explain" => "0";
|
|
15 |
requires "Test2::Plugin::NoWarnings" => "0";
|
|
16 |
};
|