Skip to content

Commit

Permalink
Travis-CI => GitHub Actions (#17)
Browse files Browse the repository at this point in the history
Travis-CI -> Github Actions
  • Loading branch information
mtmail committed Jul 11, 2023
1 parent ab24ccb commit ba304e6
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 29 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI Tests

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
version: ['5.30', '5.32', '5.34', '5.36']

env:
PERL_CPANM_OPT: "--notest --force --skip-satisfied"
GEO_CODER_OPENCAGE_API_KEY: ${{ secrets.GEO_CODER_OPENCAGE_API_KEY }}
name: Perl ${{ matrix.version }}

steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.version }}
install-modules-with: cpanm

- name: Install module
run: |
cpanm Dist::Zilla
dzil authordeps | xargs cpanm
export tmpbuild=$(mktemp --directory)
dzil build --in $tmpbuild
cpanm --quiet --notest Devel::Cover::Report::Coveralls
dzil listdeps | xargs cpanm
- name: Dzil tests
run: dzil test --author

- name: Tests
run: |
PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -lrsv t
# - name: Coverall report
# run: cover -report coveralls
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

0 comments on commit ba304e6

Please sign in to comment.