Skip to content

Commit

Permalink
Update GitHub Actions configuration
Browse files Browse the repository at this point in the history
Change requires to suggests in cpanfile for optional test modules,
and explicitly add Perl::Critic::Community. Switch to the GitHub
action for installing test dependencies. Ignore pushes to dependabot
branches for testing and only run tests on the PR.
  • Loading branch information
rra committed Mar 25, 2024
1 parent 88ccc0e commit d9989f5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: build

on:
push:
branches:
- "*"
branches-ignore:
- "dependabot/**"
tags:
- "release/*"
pull_request:
branches:
- main
- "main"

jobs:
perl:
Expand Down Expand Up @@ -43,8 +43,11 @@ jobs:
- uses: actions/checkout@v4
- name: perl -V
run: perl -V
- name: Install Dependencies
run: cpm install -g --show-build-log-on-failure
- uses: perl-actions/[email protected]
with:
cpanfile: "cpanfile"
args: "--with-suggests"
sudo: false
- name: Makefile.PL
run: perl Makefile.PL
- name: make test
Expand Down
19 changes: 10 additions & 9 deletions cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ requires 'Pod::Simple', '3.26';
on 'test' => sub {
requires 'JSON::PP';
requires 'Perl6::Slurp';
requires 'Perl::Critic';
requires 'Test::CPAN::Changes';
requires 'Test::Kwalitee';
requires 'Test::MinimumVersion';
requires 'Test::Perl::Critic';
requires 'Test::Pod';
requires 'Test::Spelling';
requires 'Test::Strict';
requires 'Test::Synopsis';
suggests 'Perl::Critic';
suggests 'Perl::Critic::Community';
suggests 'Test::CPAN::Changes';
suggests 'Test::Kwalitee';
suggests 'Test::MinimumVersion';
suggests 'Test::Perl::Critic';
suggests 'Test::Pod';
suggests 'Test::Spelling';
suggests 'Test::Strict';
suggests 'Test::Synopsis';
};

0 comments on commit d9989f5

Please sign in to comment.