-
Notifications
You must be signed in to change notification settings - Fork 12
80 lines (77 loc) · 2.56 KB
/
actions.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
79
80
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
perl:
- "latest"
- "5.34"
- "5.32"
- "5.30"
- "5.28"
- "5.26"
- "5.24"
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
# include:
# - os: "macos-latest"
# perl: "latest"
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 }}
install-modules-with: cpanm
install-modules-args: --verbose --notest --skip-satisfied
install-modules: Config::File File::BaseDir File::Rsync File::Touch File::Which IPC::Run Moo Test::Differences Test::File Test::Perl::Critic String::Random String::Expand Try::Tiny File::Slurper
- run: env | sort
- run: perl -V
- run: env RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1 make pureperltest
checkbashisms:
runs-on: "ubuntu-latest"
name: Check for bashisms
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install -y devscripts
- run: make checkbashisms
coverage:
# Only run code coverage if the build actually succeeded
needs: build
environment: github-actions
runs-on: 'ubuntu-latest'
name: Run coverage checks
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: "latest"
install-modules-with: cpanm
install-modules-args: --verbose --notest --skip-satisfied
install-modules: Config::File File::BaseDir File::Rsync File::Touch File::Which IPC::Run Moo Test::Differences Test::File Test::Perl::Critic String::Random String::Expand Try::Tiny File::Slurper Devel::Cover Devel::Cover::Report::Codecovbash Devel::Cover::Report::Coveralls
- run: perl -V
- name: Run coverage tests
run: make codecovbash coveralls
- uses: codecov/codecov-action@v2
with:
files: cover_db/codecov.json
verbose: true