Skip to content

Commit ff7b5f5

Browse files
authored
Merge pull request #37 from atoomic/ci++
Add basic CI
2 parents 55494c8 + 874b150 commit ff7b5f5

1 file changed

Lines changed: 101 additions & 0 deletions

File tree

.github/workflows/testsuite.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: testsuite
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
tags-ignore:
8+
- "*"
9+
pull_request:
10+
11+
env:
12+
PERL_USE_UNSAFE_INC: 0
13+
AUTHOR_TESTING: 1
14+
AUTOMATED_TESTING: 1
15+
RELEASE_TESTING: 1
16+
17+
jobs:
18+
19+
ubuntu:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- run: perl -V
25+
- name: install dependencies
26+
uses: perl-actions/install-with-cpanm@stable
27+
with:
28+
sudo: true
29+
install: |
30+
Carp
31+
Cwd
32+
Fcntl
33+
File::Path
34+
File::Spec
35+
File::Temp
36+
Getopt::Long
37+
POSIX
38+
Scalar::Util
39+
Storable
40+
Term::ReadLine
41+
Test::Exception
42+
Test::More
43+
Text::Wrap
44+
Unix::PID
45+
YAML::Syck
46+
- run: perl Makefile.PL
47+
- run: make
48+
- run: make test
49+
50+
linux:
51+
runs-on: ubuntu-latest
52+
needs: [ubuntu]
53+
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
perl-version:
58+
- "5.34"
59+
- "5.32"
60+
- "5.30"
61+
- "5.28"
62+
- "5.26"
63+
- "5.24"
64+
- "5.22"
65+
- "5.20"
66+
- "5.18"
67+
- "5.16"
68+
- "5.14"
69+
- "5.12"
70+
- "5.10"
71+
72+
container:
73+
image: perldocker/perl-tester:${{ matrix.perl-version }}
74+
75+
steps:
76+
- uses: actions/checkout@v3
77+
- run: perl -V
78+
- name: install dependencies
79+
uses: perl-actions/install-with-cpanm@stable
80+
with:
81+
sudo: false
82+
install: |
83+
Carp
84+
Cwd
85+
Fcntl
86+
File::Path
87+
File::Spec
88+
File::Temp
89+
Getopt::Long
90+
POSIX
91+
Scalar::Util
92+
Storable
93+
Term::ReadLine
94+
Test::Exception
95+
Test::More
96+
Text::Wrap
97+
Unix::PID
98+
YAML::Syck
99+
- run: perl Makefile.PL
100+
- run: make
101+
- run: make test

0 commit comments

Comments
 (0)