-
Notifications
You must be signed in to change notification settings - Fork 15
33 lines (32 loc) · 896 Bytes
/
test.yaml
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
name: Run tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: ['ubuntu-latest', 'windows-latest']
os: ['ubuntu-latest']
# Latest and oldest supported
perl: [ 'latest', '5.20' ]
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V
# Install explicitly as configure metadata not checked in
- run: |
set +e
set -x
cpanm -n ExtUtils::CppGuess
exit=$?
if [ $exit != 0 ]; then
cat ~/.cpanm/work/*/build.log
fi
exit $exit
- run: cpanm -v --installdeps .
- run: make
- run: AUTOMATED_TESTING=1 prove -lbv