Skip to content

Commit

Permalink
Merge pull request #12 from PDLPorters/gha-shared-actions
Browse files Browse the repository at this point in the history
Use shared GitHub Actions
  • Loading branch information
mohawk2 committed Oct 31, 2021
2 parents a32f3e8 + e110910 commit 1d20d0d
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 8 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: perl
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
create:
jobs:
notify:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
target-notifications: true
ci:
runs-on: ${{ matrix.os }}
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
needs: notify
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
perl-version: ['5.10', '5.14', '5.20']
include:
- perl-version: '5.30'
os: ubuntu-latest
release-test: true
coverage: true
- perl-version: '5.30'
os: windows-latest
# Disable macos
# NOTE This issue is because the linker is
# not able to find the library at testing
# time as it is in blib/. This may need
# fixing by setting the value of @rpath.
#- perl-version: '5.30'
# os: macos-11
steps:
- uses: actions/checkout@v2
- name: 'ci-dist: target-setup-perl'
uses: PDLPorters/devops/github-actions/ci-dist@master
with:
target-setup-perl: true
perl-version: ${{ matrix.perl-version }}
- name: Install Perl configure deps
shell: bash
run: |
$MYPERL -S cpanm --dev -n Alien::Build Alien::Build::MM Alien::Build::Plugin::Cleanse::BuildDir Alien::Build::Plugin::PkgConfig::Negotiate ExtUtils::MakeMaker File::Find::Rule PkgConfig Sort::Versions || cat ~/.cpanm/build.log
- name: Install Perl release testing deps
if: matrix.release-test
shell: bash
run: |
$MYPERL -S cpanm --dev -n Test::HasVersion Test::Pod Test::Perl::Critic::Progressive Test::NoTabs Test::Strict || cat ~/.cpanm/build.log
- name: 'ci-dist: target-all'
uses: PDLPorters/devops/github-actions/ci-dist@master
with:
target-setup-perl: false
target-install-dist-perl-deps: true
target-test-release-testing: true
target-test: true
test-enable-release-testing: ${{ matrix.release-test }}
test-enable-coverage: ${{ matrix.coverage }}
github-token: ${{ secrets.GITHUB_TOKEN }}
build-enable-parallel: false

build-status:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
needs: [ 'ci' ]
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
target-build-status: true
needs: ${{ toJSON(needs) }}
17 changes: 17 additions & 0 deletions .github/workflows/issue-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: issue-notify

on:
issues:
types: [opened]
issue_comment:
types: [created]

jobs:
notify:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
target-notifications: true
13 changes: 5 additions & 8 deletions xt/09-use_strict.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ if ($OSNAME eq 'MSWin32') {
plan skip_all => "Skipping use_strict tests due to false positives on $OSNAME";
}

all_perl_files_ok( ); # Syntax ok and use strict;
use FindBin qw { $Bin };
my @paths = map {
File::Spec->catfile ($Bin, qw{..}, $_ )
} qw(bin lib t xt);

#
#use FindBin qw { $Bin };
#my $bin_path = File::Spec->catfile ($Bin, qw{..}, 'bin');
#my $lib_path = File::Spec->catfile ($Bin, qw{..}, 'lib');
#my $t_path = File::Spec->catfile ($Bin, qw{..}, 't');
#
#all_perl_files_ok( $bin_path, $lib_path, $t_path ); # Syntax ok and use strict;
all_perl_files_ok( @paths ); # Syntax ok and use strict;

0 comments on commit 1d20d0d

Please sign in to comment.