-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.26 KB
/
perl_linux.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
50
51
52
name: linux
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
perl:
runs-on: ubuntu-latest
strategy:
matrix:
perl-version:
- '5.16-buster'
- '5.30'
- '5.32'
- '5.34'
- '5.36'
- '5.38'
- '5.40'
- 'latest'
- 'threaded'
container:
image: perl:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v3
- name: perl -V
run: perl -V
- name: Install Dependencies
run: |
apt-get update -y
apt-get install -y zsh
curl -fsSL --compressed https://raw.githubusercontent.com/skaji/cpm/main/cpm > cpm
perl ./cpm install -g Test::Requires B::Debug Devel::Cover Devel::Cover::Report::Coveralls
perl ./cpm install -g --show-build-log-on-failure --with-recommends --with-test
- name: Run Tests (no coverage)
if: ${{ !matrix.coverage }}
run: PERL=$(which perl) ./t/runtests.zsh
- name: Run Tests (with coverage)
if: ${{ matrix.coverage }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PERL=$(which perl) ./t/runtests.zsh -C
cover -report coveralls t/cover_db