-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 959 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: test
on:
pull_request:
push:
branches:
- master
jobs:
testing:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
perl: [ '5.30', '5.38' ]
name: Testing perl ${{ matrix.perl }} on ${{ matrix.os }}
env:
PERL_VERSION: ${{ matrix.perl }}
steps:
- uses: actions/checkout@v3
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: install dependencies by shell
if: env.PERL_VERSION != '5.10'
run: cpanm --installdeps .
- name: install dependencies
if: env.PERL_VERSION == '5.10'
uses: perl-actions/install-with-cpanm@v1
with:
install: |
LWP::UserAgent
LWP::Protocol::https
HTTP::Request::Common
JSON
Test::More
Test::Mock::LWP
- run: perl -V && perl Makefile.PL && make test