From d1de0cd1192d4339bc7d9d52a733f27e2033532a Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Mon, 22 Jan 2024 19:26:29 +0000 Subject: [PATCH] Standardise CPAN Actions --- .github/workflows/perltest.yml | 35 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/perltest.yml b/.github/workflows/perltest.yml index a9faed2..4641afe 100644 --- a/.github/workflows/perltest.yml +++ b/.github/workflows/perltest.yml @@ -1,9 +1,5 @@ -# This is a basic workflow to help you get started with Actions - name: CI -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch on: push: branches: [ master ] @@ -11,21 +7,18 @@ on: branches: [ master ] workflow_dispatch: -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ 'ubuntu-latest' ] - perl: [ 'latest' ] - name: Perl ${{ matrix.perl }} on ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - name: Set up perl - uses: shogo82148/actions-setup-perl@v1 - with: - perl-version: ${{ matrix.perl }} - - run: perl -V - - run: cpanm --installdeps . - - run: prove -lv t + test: + uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-test.yml@main + with: + os: "[ 'ubuntu-latest' ]" + perl_version: "[ 'latest' ]" + + coverage: + uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-coverage.yml@main + + perlcritic: + uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-perlcritic.yml@main + + complexity: + uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-complexity.yml@main