Skip to content

Commit

Permalink
Start running CI on GitHub Actions
Browse files Browse the repository at this point in the history
This adds a basic test workflow on GitHub Actions.
  • Loading branch information
zakame committed Dec 17, 2020
1 parent 2498b5d commit 372d182
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,31 @@
name: Test on latest supported Perls

on:
push:
branches:
- master
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
perl-version: [ "5.32", "5.30" ]
include:
- perl-version: "5.32"
coverage: true
container: ${{ format('perl:{0}', matrix.perl-version) }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: cpanm --notest --quiet --installdeps .
- name: Run tests
run: perl Build.PL && ./Build && ./Build test
- name: Check test coverage
if: ${{ matrix.coverage }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cpanm --notest --quiet Devel::Cover::Report::Coveralls
cover -test -report Coveralls

0 comments on commit 372d182

Please sign in to comment.