Skip to content

Commit 76eb50f

Browse files
authored
Merge pull request #14 from perl-net-saml2/github-test
Update github tests
2 parents b1a9dec + c659bda commit 76eb50f

File tree

4 files changed

+109
-2
lines changed

4 files changed

+109
-2
lines changed

.github/workflows/linux.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ jobs:
2525
image: perl:${{ matrix.perl-version }}
2626
steps:
2727
- 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
2833
- name: Install Dependencies
2934
run: |
30-
curl -sL https://cpanmin.us/ | perl - -nq --with-develop --installdeps .
35+
apt-get install make gcc libssl-dev;
3136
- name: Build Module
3237
run: |
33-
apt-get install make gcc libssl-dev;
3438
perl Makefile.PL;
3539
make
3640
- name: Run Tests

.github/workflows/macos-10.15.yml

+36
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

+34
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
+33
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)