-
Notifications
You must be signed in to change notification settings - Fork 36
78 lines (74 loc) · 2.56 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: test
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
ubuntu:
name: ubuntu perl ${{ matrix.perl-version }}
runs-on: ubuntu-latest
strategy:
matrix:
perl-version:
- '5.8-buster'
- '5.10-buster'
- '5.16-buster'
- '5.18-buster'
- 'latest'
- 'threaded'
container:
image: perl:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v4
- name: Install deb packages
run: apt-get -qq update && apt-get -qq install -y unzip libdb-dev
- name: perl -V
run: perl -V
- name: Install Dependencies
run: curl -fsSL --compressed https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install -g --with-develop --with-recommends --show-build-log-on-failure
if: matrix.perl-version != '5.8-buster'
- name: Install Dependencies
run: curl -fsSL --compressed https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install -g --with-develop --with-recommends --show-build-log-on-failure --resolver Fixed,CPAN::Meta::Requirements@2.140,Module::Build::Tiny@0.047
if: matrix.perl-version == '5.8-buster'
- name: Run Tests
run: prove -lr --timer t xt
macos:
name: macos ${{ matrix.perl }}
runs-on: macos-latest
strategy:
matrix:
include:
- perl: /usr/bin/perl
prove: /usr/bin/prove
cpm-option: --sudo
- perl: /opt/homebrew/bin/perl
prove: /opt/homebrew/bin/prove
cpm-option: ''
steps:
- uses: actions/checkout@v4
- name: perl -V
run: ${{ matrix.perl }} -V
- name: Install Dependencies
run: curl -fsSL --compressed https://raw.githubusercontent.com/skaji/cpm/main/cpm | ${{ matrix.perl }} - install -g ${{ matrix.cpm-option }} --with-develop --with-recommends --show-build-log-on-failure
- name: Run Tests
run: ${{ matrix.prove }} -lr --timer t xt
windows:
name: windows perl ${{ matrix.tester-id }}
runs-on: windows-latest
strategy:
matrix:
tester-id:
- '0'
- '1'
- '2'
steps:
- uses: actions/checkout@v4
- name: perl -V
run: perl -V
- name: Install Dependencies
run: curl -fsSL https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install -g --with-develop --with-recommends --show-build-log-on-failure
- name: Run Tests
run: perl author\split-run "t\*.t xt\*.t xt\*\*.t" ${{ matrix.tester-id }}/3 prove -l --timer