-
Notifications
You must be signed in to change notification settings - Fork 31
50 lines (43 loc) · 1.16 KB
/
testsuite.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
39
40
41
42
43
44
45
46
47
48
49
name: testsuite
on:
push:
branches:
- "*"
- '!docs'
tags-ignore:
- "*"
pull_request:
workflow_dispatch:
jobs:
testsuite:
env:
PERL_USE_UNSAFE_INC: 1
CPANEL_BIN_PATH: /usr/local/cpanel/3rdparty/bin
CPANEL_PERL: /usr/local/cpanel/3rdparty/perl/532/bin/perl
runs-on: ubuntu-latest
strategy:
fail-fast: false
container:
image: cpanelos/perl-compiler:perl-v5.32.0
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PATH
run: |
echo $CPANEL_BIN_PATH >> $GITHUB_PATH;
$CPANEL_PERL -MConfig -E 'say $Config{sitebin}' >> $GITHUB_PATH
$CPANEL_PERL -MConfig -E 'say $Config{vendorbin}' >> $GITHUB_PATH
- run: perl -V
- name: install Perl dependencies
uses: perl-actions/install-with-cpm@stable
with:
sudo: false
cpanfile: "t/cpanfile"
args: "--with-all"
- name: cpanel-setup
run: /bin/bash t/cpanel-setup
- name: which prove
run: ls -l $(which prove)
- run: perl -cw elevate-cpanel
- name: Run tests
run: prove -lv -It/lib t/*.t