-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from PDLPorters/gha-shared-actions
Use shared GitHub Actions
- Loading branch information
Showing
3 changed files
with
101 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters