Skip to content

Commit e9c3fa8

Browse files
committed
Improve GitHub Action and reduce time required
1 parent 2ecbc2b commit e9c3fa8

File tree

1 file changed

+8
-39
lines changed

1 file changed

+8
-39
lines changed

.github/workflows/linux.yml

+8-39
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
strategy:
1010
matrix:
1111
perl-version:
12+
- '5.10'
13+
- '5.12'
1214
- '5.14'
1315
- '5.16'
1416
- '5.18'
@@ -18,62 +20,29 @@ jobs:
1820
- '5.26'
1921
- '5.28'
2022
- '5.30'
23+
- '5.32'
2124
container:
2225
image: perl:${{ matrix.perl-version }}
2326
steps:
2427
- uses: actions/checkout@v1
25-
- name: Install Dependencies
26-
run: |
27-
cpanm -n \
28-
Devel::Cover::Report::Coveralls \
29-
Dist::Zilla \
30-
Dist::Zilla::App::Command::cover \
31-
Dist::Zilla::Plugin::CheckChangeLog \
32-
Dist::Zilla::Plugin::ExtraTests \
33-
Dist::Zilla::Plugin::GitHub::Meta \
34-
Dist::Zilla::Plugin::MetaProvides::Package \
35-
Dist::Zilla::Plugin::MinimumPerl \
36-
Dist::Zilla::Plugin::PerlTidy \
37-
Dist::Zilla::Plugin::PodCoverageTests \
38-
Dist::Zilla::Plugin::PodSyntaxTests \
39-
Dist::Zilla::Plugin::RewriteVersion \
40-
Dist::Zilla::Plugin::Test::Kwalitee \
41-
Dist::Zilla::Plugin::Test::Kwalitee::Extra \
42-
Dist::Zilla::Plugin::Test::Perl::Critic \
43-
Dist::Zilla::Plugin::Test::Portability \
44-
Dist::Zilla::Plugin::Test::UnusedVars \
45-
Dist::Zilla::Plugin::Meta::Maintainers \
46-
Dist::Zilla::Plugin::Meta::Contributors \
47-
Dist::Zilla::Plugin::Repository \
48-
Dist::Zilla::Plugin::Test::EOL \
49-
Dist::Zilla::Plugin::Test::EOF \
50-
Dist::Zilla::Plugin::Test::NoTabs \
51-
Dist::Zilla::Plugin::Test::TrailingSpace \
52-
Dist::Zilla::Plugin::PodWeaver \
53-
Dist::Zilla::Plugin::VersionFromModule \
54-
Dist::Zilla::Plugin::AuthorsFromGit;
55-
dzil authordeps --missing | cpanm;
5628
- name: Install Crypt::OpenSSL::VerifyX509
5729
run: |
58-
cpan install inc::Module::Install Module::Install::AuthorRequires Module::Install::AuthorTests \
30+
curl -sL https://cpanmin.us/ | perl - -nq inc::Module::Install \
31+
Module::Install::AuthorRequires Module::Install::AuthorTests \
5932
Test::NoTabs Test::Pod Test::Pod::Coverage Test::More Crypt::OpenSSL::X509;
6033
git clone https://github.com/timlegge/perl-Crypt-OpenSSL-VerifyX509.git;
6134
cd perl-Crypt-OpenSSL-VerifyX509;
6235
perl Makefile.PL;
6336
make install;
64-
- name: Run dzil
37+
cd ..;
38+
- name: Install Net::SAML2 Depends
6539
run: |
6640
apt-get install libxml2-dev make gcc;
67-
perl -e 'use Crypt::OpenSSL::VerifyX509';
68-
dzil build;
69-
cd Net-Saml2-$(grep our lib/Net/SAML2.pm | sed "s/[^0-9\.]//g");
70-
curl -sL https://cpanmin.us/ | perl - -nq --with-develop --installdeps . ;
41+
curl -sL https://cpanmin.us/ | perl - -nq --installdeps . ;
7142
- name: Build Module
7243
run: |
73-
cd Net-Saml2-$(grep our lib/Net/SAML2.pm | sed "s/[^0-9\.]//g");
7444
perl Makefile.PL;
7545
make
7646
- name: Run Tests
7747
run: |
78-
cd Net-Saml2-$(grep our lib/Net/SAML2.pm | sed "s/[^0-9\.]//g");
7948
prove -lr -l -b -I inc t

0 commit comments

Comments
 (0)