blob: 246774e28ba33959251b41d9959cabaf8527b754 (
plain)
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: Automatically run tests (matrixed)
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
workflow_dispatch:
jobs:
test-matrix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
perl: [ '5', '5.32' ]
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Identify perl version
run: perl -V
- name: Install dependencies
run: cpanm --installdeps .
- run: cpanm Test::Pod
- run: cpanm Test::Pod::Coverage
- run: cpanm Test::CPAN::Meta
- name: Run tests
run: make test TEST_VERBOSE=1
test-strawberry:
runs-on: 'windows-latest'
strategy:
matrix:
perl: [ '5', '5.32' ]
name: Perl ${{ matrix.perl }} on windows-latest (strawberry)
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Identify perl version
run: perl -V
- name: Install dependencies
run: cpanm --installdeps .
- name: Run tests
run: make test TEST_VERBOSE=1
|