Skip to content

Commit 0ee5b86

Browse files
committed
Add github actions
1 parent 66ba6da commit 0ee5b86

File tree

4 files changed

+144
-0
lines changed

4 files changed

+144
-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.10-buster'
13+
- '5.12-buster'
14+
- '5.14-buster'
15+
- '5.16-buster'
16+
- '5.18-buster'
17+
- '5.20-buster'
18+
- '5.22-buster'
19+
- '5.24-buster'
20+
- '5.26'
21+
- '5.28'
22+
- '5.30'
23+
- '5.32'
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-10.15.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
name: macos-10.15
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
tags-ignore:
9+
- '*'
10+
pull_request:
11+
branches:
12+
- '*'
13+
jobs:
14+
perl:
15+
# REF: https://github.com/actions/virtual-environments
16+
runs-on: macOS-10.15
17+
18+
strategy:
19+
fail-fast: false
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: uses install-with-cpanm
24+
uses: perl-actions/install-with-cpanm@v1
25+
with:
26+
cpanfile: "cpanfile"
27+
sudo: false
28+
# REF: https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md (see link above, at the time of writing we get Perl 5.34.0 with macOS 10.15)
29+
- name: perl -V
30+
run: perl -V
31+
32+
- name: Run Tests
33+
run: |
34+
perl Makefile.PL
35+
make
36+
make test

.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: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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: Install Dependencies
28+
run: cpanm --installdeps .
29+
- name: Build Module
30+
run: |
31+
perl Makefile.PL
32+
make
33+
make test

0 commit comments

Comments
 (0)