Skip to content

Install Devel::Cover::Report::Codecov for Codecov #85

Install Devel::Cover::Report::Codecov for Codecov

Install Devel::Cover::Report::Codecov for Codecov #85

Workflow file for this run

---
# See https://github.com/actions/virtual-environments
name: Test Code
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
schedule:
- cron: '12 23 4 * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
perl: ['5.38', '5.36', '5.34', '5.32', '5.30', '5.28', '5.22']
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V
- name: Install Dependencies
run: |
cpanm -iqn --skip-satisfied File::Spec ExtUtils::MakeMaker Devel::Cover::Report::Codecov
cpanm -iqn --skip-satisfied Test::Script Test::Pod::Spelling::CommonMistakes Test::Portability::Files Test::Taint Test::Carp Test::Pod::Coverage
cpanm -iqn --skip-satisfied --installdeps --notest .
- name: Make Module
run: |
# find . -name build.log | xargs cat
perl Makefile.PL
make
- name: Run Tests
# run: prove -l -b t
run: |
cover -test
cover -report codecov
curl -Os https://uploader.codecov.io/latest/macos/codecov
chmod +x codecov
./codecov -t ${{ secrets.CODECOV_TOKEN }}
env:
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}