Skip to content

Commit 08276f2

Browse files
committed
Add some githoub actions to test builds
1 parent 27e4d6e commit 08276f2

File tree

3 files changed

+110
-0
lines changed

3 files changed

+110
-0
lines changed

.github/workflows/linux.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: linux
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
perl:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
perl-version:
12+
- '5.14-buster'
13+
- '5.16-buster'
14+
- '5.18-buster'
15+
- '5.20-buster'
16+
- '5.22-buster'
17+
- '5.24-buster'
18+
- '5.26'
19+
- '5.28'
20+
- '5.30'
21+
- '5.32'
22+
- '5.34'
23+
- '5.36'
24+
container:
25+
image: perl:${{ matrix.perl-version }}
26+
steps:
27+
- uses: actions/checkout@v1
28+
- name: uses install-with-cpanm
29+
uses: perl-actions/install-with-cpanm@v1
30+
with:
31+
cpanfile: "cpanfile"
32+
sudo: false
33+
- name: Install Dependencies
34+
run: |
35+
apt-get install make gcc libssl-dev;
36+
- name: Build Module
37+
run: |
38+
perl Makefile.PL;
39+
make
40+
- name: Run Tests
41+
run: prove -lr -l -b -I inc t

.github/workflows/macos-latest.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
name: macos-latest
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
tags-ignore:
9+
- '*'
10+
pull_request:
11+
12+
jobs:
13+
perl:
14+
15+
runs-on: macOS-latest
16+
17+
strategy:
18+
fail-fast: false
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: uses install-with-cpanm
23+
uses: perl-actions/install-with-cpanm@v1
24+
with:
25+
cpanfile: "cpanfile"
26+
sudo: false
27+
- name: perl -V
28+
run: perl -V
29+
30+
- name: Run Tests
31+
run: |
32+
perl Makefile.PL
33+
make
34+
make test
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Windows-Strawberry
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags-ignore:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- '*'
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: ['windows-latest']
18+
perl: [ '5.32', '5.30', '5.28' ]
19+
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up perl
23+
uses: shogo82148/actions-setup-perl@v1
24+
with:
25+
perl-version: ${{ matrix.perl }}
26+
distribution: strawberry
27+
- name: perl -V
28+
run: perl -V
29+
- name: Install Dependencies
30+
run: cpanm --installdeps .
31+
- name: Build Module
32+
run: |
33+
perl Makefile.PL
34+
make
35+
make test

0 commit comments

Comments
 (0)