GH-222 - set app_root to FindBin::Bin by default #68
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
name: linux | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
jobs: | |
perl: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
perl-version: | |
- '5.16-buster' | |
- '5.30' | |
- '5.32' | |
- '5.34' | |
- '5.36' | |
- '5.38' | |
- '5.40' | |
- 'latest' | |
- 'threaded' | |
container: | |
image: perl:${{ matrix.perl-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: perl -V | |
run: perl -V | |
- name: Install Dependencies | |
run: | | |
apt-get update -y | |
apt-get install -y zsh | |
curl -fsSL --compressed https://raw.githubusercontent.com/skaji/cpm/main/cpm > cpm | |
perl ./cpm install -g Test::Requires B::Debug Devel::Cover Devel::Cover::Report::Coveralls | |
perl ./cpm install -g --show-build-log-on-failure --with-recommends --with-test | |
- name: Run Tests (no coverage) | |
if: ${{ !matrix.coverage }} | |
run: PERL=$(which perl) ./t/runtests.zsh | |
- name: Run Tests (with coverage) | |
if: ${{ matrix.coverage }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
PERL=$(which perl) ./t/runtests.zsh -C | |
cover -report coveralls t/cover_db |