From 401c5cdda9635cf97b87890dcce6add525bd4e58 Mon Sep 17 00:00:00 2001 From: Zakariyya Mughal Date: Thu, 22 Dec 2022 17:51:32 -0500 Subject: [PATCH] Use shared GitHub Actions Connects with . --- .github/workflows/ci.yml | 67 ++++++++++++++++++++++++++++++ .github/workflows/issue-notify.yml | 21 ++++++++++ 2 files changed, 88 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/issue-notify.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bc13b9c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,67 @@ +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 + - 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 PDL dependencies + uses: PDLPorters/devops/github-actions/install-dep-pdl-dep@master + - name: 'ci-dist: target-all' + uses: PDLPorters/devops/github-actions/ci-dist@master + with: + target-setup-perl: false + target-install-dist-perl-deps: true + dist-perl-deps-configure: PDL Module::Build + 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-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) }} diff --git a/.github/workflows/issue-notify.yml b/.github/workflows/issue-notify.yml new file mode 100644 index 0000000..430b399 --- /dev/null +++ b/.github/workflows/issue-notify.yml @@ -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: PDLPorters/devops/github-actions/irc-notifications@master + with: + target-notifications: true