Skip to content

Build workflow

Build workflow #16

Workflow file for this run

name: Build workflow
run-name: Build workflow
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
env:
TEST_REDIS: redis://redis:6379
container:
image: debian:bullseye
services:
redis:
image: redis
postgres:
image: postgres
steps:
-
name: Prepare Environment
run: |
apt-get update && apt-get install -y --no-install-recommends libssl-dev cpanminus make gcc openssl zlib1g-dev pkg-config git libpq-dev apt-transport-https ca-certificates
git config --global --add safe.directory "$GITHUB_WORKSPACE"
-
name: Checkout Code
uses: actions/checkout@v4
-
name: Install Perl Dependencies
run: |
cpanm --quiet --notest Dist::Zilla Dist::Zilla::App::Command::cover Devel::Cover::Report::Codecov
cpanm --quiet --notest $(dzil authordeps --missing)
cpanm -n --installdeps .
cpanm --quiet --notest $(dzil listdeps --author --missing)
-
name: Run Smoke Test
run: dzil smoke --release --author
-
name: Run Coverage Test
run: dzil cover -test -report codecov
-
name: Run extended author test
run: dzil xtest