From 029028aac8929dcbe81c55893f19fc9d57bff1b2 Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Tue, 30 May 2023 23:09:34 +0300 Subject: [PATCH 1/2] add GitHub Actions --- .github/workflows/ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2368e76 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: +# schedule: +# - cron: '42 5 * * *' + +jobs: + test: + strategy: + fail-fast: false + matrix: + runner: [ubuntu-latest, macos-latest, windows-latest] + perl: [ '5.30', '5.36' ] + exclude: + - runner: windows-latest + perl: '5.36' + + runs-on: ${{matrix.runner}} + name: OS ${{matrix.runner}} Perl ${{matrix.perl}} + + steps: + - uses: actions/checkout@v3 + + - name: Set up perl + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: ${{ matrix.perl }} + distribution: ${{ ( matrix.runner == 'windows-latest' && 'strawberry' ) || 'default' }} + + - name: Show Perl Version + run: | + perl -v + + - name: Install Modules + run: | + cpanm -v + cpanm --installdeps --notest . + + - name: Run tests + run: | + perl Makefile.PL + make + make test + + From 816ecb4fab57de8aed803a894f7518c1fc0a294e Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Tue, 30 May 2023 23:16:57 +0300 Subject: [PATCH 2/2] install development modules as well --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2368e76..b1fbbb3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: - name: Install Modules run: | cpanm -v - cpanm --installdeps --notest . + cpanm --installdeps --with-develop --notest . - name: Run tests run: |