From 282f74d8d9821063d7e01714a078c3f37d313563 Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Wed, 5 Oct 2022 16:55:50 +0300 Subject: [PATCH] configure ci --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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 00000000..5439bd39 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: Perl + +on: + push: + pull_request: + +jobs: + test: + strategy: + fail-fast: false + matrix: + runner: [ubuntu-latest] # , macos-latest, windows-latest + perl: [ '5.32' ] + + runs-on: ${{matrix.runner}} + name: OS ${{matrix.runner}} Perl ${{matrix.perl}} + + steps: + - uses: actions/checkout@v2 + + - name: Set up perl + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: ${{ matrix.perl }} + distribution: ${{ ( startsWith( matrix.runner, 'windows-' ) && '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 +