-
Notifications
You must be signed in to change notification settings - Fork 16
64 lines (61 loc) · 1.91 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
53
54
55
56
57
58
59
60
61
62
63
64
name: macos
on:
push:
branches:
- '*'
tags-ignore:
# I tag release pushes but those should have already been tested
- 'release-*'
paths-ignore:
# list all the files which are irrelevant to the tests
# non-code, support files, docs, etc
- '.appveyor.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/windows.yml'
- '.gitignore'
- '.releaserc'
- 'Changes'
- 'LICENSE'
- 'README.pod'
pull_request:
jobs:
perl:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Platform check
run: uname -a
- name: Set up Perl
run: brew install perl
- name: Perl version check
run: perl -V
- name: Prepare cpan
run: |
openssl version
cpan IO::Socket::SSL
cpan -M https://www.cpan.org -T ExtUtils::MakeMaker
- name: Install dependencies
run: |
cpan -M https://www.cpan.org -T .
- name: Run tests
run: |
perl Makefile.PL
make test
- name: Run tests in parallel
env:
HARNESS_OPTIONS: j10
run: |
perl Makefile.PL
make test
- name: Run distribution tests
run: |
perl Makefile.PL
make disttest
- name: Setup coverage tests
run: |
cpan -M https://www.cpan.org -T Devel::Cover Devel::Cover::Report::Coveralls
- name: Run coverage tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cover -test -report coveralls