-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.43 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
name: Linting & Coverage
on:
pull_request:
types:
- opened
- synchronize
workflow_call:
jobs:
test:
name: 🧪 Linting
runs-on: ubuntu-latest
container:
image: perldocker/perl-tester:latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: APT Packages
run: apt install -y perl-doc ctags perltidy
- name: Super Linter Code Base
uses: github/super-linter/slim@v5
env:
FILTER_REGEX_INCLUDE: "/lib/*|/t/*|/scripts/.*.sh|updateVersion.sh"
DEFAULT_BRANCH: master
VALIDATE_PERL: true
VALIDATE_BASH: true
VALIDATE_ALL_CODEBASE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test_matrix:
strategy:
matrix:
perl-version: ${{ fromJson(vars.RTLDEV_MW_CI_PERL_MATRIX) }}
name: 🧪 Testing
runs-on: ubuntu-latest
needs: test
container:
image: perldocker/perl-tester:${{ matrix.perl-version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: APT Packages
run: apt install -y perl-doc ctags perltidy
- name: Generate Coverage Report
run: |
cpm install -g --no-test --show-build-log-on-failure --cpanfile cpanfile
./scripts/coverage.sh