forked from perlrdf/p5-atteanx-store-filesystem
-
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 perlrdf#1 from zmughal-contrib/ci
Use shared CI actions
- Loading branch information
Showing
3 changed files
with
110 additions
and
2 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,87 @@ | ||
name: Run Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- '*' | ||
tags-ignore: | ||
- '*' | ||
pull_request: | ||
create: | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
if: ${{ always() }} | ||
steps: | ||
- uses: perlrdf/devops/github-actions/irc-notifications@main | ||
with: | ||
target-notifications: true | ||
dist: | ||
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }} | ||
name: Make distribution | ||
runs-on: ubuntu-latest | ||
outputs: | ||
min-perl-version: ${{ steps.build-dist.outputs.min-perl-version }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- id: build-dist | ||
uses: perlrdf/devops/github-actions/build-dist@main | ||
with: | ||
dist-perl-deps-develop: Attean Test::Roo | ||
test: | ||
needs: [ 'dist', 'notify' ] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
perl: ['5'] | ||
include: | ||
- { os: 'ubuntu-latest', perl: "5.32" } | ||
- { os: 'ubuntu-latest', perl: "5.30" } | ||
- { os: 'ubuntu-latest', perl: "5.20" } | ||
- { os: 'ubuntu-latest', perl: "5.16" } | ||
- { os: 'ubuntu-latest', perl: "5.14" } | ||
# Not testing this for now due to Attean (requires Perl 5.14) | ||
#- { os: 'ubuntu-latest', perl: "${{ needs.dist.outputs.min-perl-version }}" } | ||
name: Perl ${{ matrix.perl }} on ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Get dist artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: dist | ||
|
||
- name: Set up perl | ||
uses: shogo82148/actions-setup-perl@v1 | ||
if: matrix.os != 'windows-latest' | ||
with: | ||
perl-version: ${{ matrix.perl }} | ||
- name: Set up perl (Strawberry) | ||
uses: shogo82148/actions-setup-perl@v1 | ||
if: matrix.os == 'windows-latest' | ||
with: | ||
distribution: 'strawberry' | ||
|
||
- run: perl -V | ||
|
||
- name: Install Perl deps | ||
run: | | ||
cpanm --notest --installdeps . | ||
- name: Run tests | ||
run: | | ||
cpanm --verbose --test-only . | ||
build-status: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
if: ${{ always() }} | ||
needs: test | ||
steps: | ||
- uses: perlrdf/devops/github-actions/irc-notifications@main | ||
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,21 @@ | ||
name: issue-notify | ||
|
||
on: | ||
issues: | ||
types: [opened,assigned,closed,reopened] | ||
issue_comment: | ||
types: [created] | ||
pull_request: | ||
types: [closed,assigned,converted_to_draft,ready_for_review,review_requested] | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
if: ${{ always() }} | ||
steps: | ||
- uses: perlrdf/devops/github-actions/irc-notifications@main | ||
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