-
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (51 loc) · 1.52 KB
/
macos.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
---
# See https://github.com/actions/virtual-environments
name: Test Code on OS/X
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-13
- macos-12
- macos-11
perl: ['5.38', '5.36', '5.34', '5.32', '5.30', '5.28', '5.22']
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: codecov/codecov-action@v3
- name: Setup perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V
- name: Install Dependencies
run: |
cpanm -iqn --skip-satisfied File::Spec ExtUtils::MakeMaker Devel::Cover::Report::Codecov Test::Harness
cpanm -iqn --skip-satisfied Test::Script Test::Portability::Files Test::Taint Test::Carp Test::Compile Test::Pod::Coverage LWP::UserAgent
cpanm -iqn --skip-satisfied --installdeps --notest .
# - name: Run Tests
# run: |
# cover -test
# cover -report codecov
# curl -Os https://uploader.codecov.io/latest/macos/codecov
# chmod +x codecov
# ./codecov -t ${{ secrets.CODECOV_TOKEN }}
# shell: bash
# env:
# AUTHOR_TESTING: 1
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run Tests
run: prove -l -b t
shell: bash
env:
AUTHOR_TESTING: 1