Merge pull request #10 from oalders/typos #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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', 'develop' ] | |
pull_request: | |
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', 'macos-latest'] | |
perl: [ 'latest' ] | |
name: Perl ${{ matrix.perl }} on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: ${{ matrix.perl }} | |
- run: perl -V | |
- run: cpanm Module::Install | |
- run: cpanm -n --installdeps . | |
- run: prove -lv t | |
coverage: | |
runs-on: ubuntu-latest | |
container: davorg/perl-coveralls:latest | |
name: Test coverage | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install modules Module::Install | |
run: cpanm Module::Install | |
- name: Install dependencies | |
run: cpanm -n --installdeps . | |
- name: Coverage | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: cover -test -report Coveralls |