Skip to content

Latest DB.pm from NJH-Snippets #75

Latest DB.pm from NJH-Snippets

Latest DB.pm from NJH-Snippets #75

Workflow file for this run

---
# see https://github.com/FGasper/perl-github-action-tips
name: Test Code on BSD
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
os:
- name: freebsd
version: '13.0'
pkginstall: pkg install -y p5-ExtUtils-MakeMaker p5-JSON-MaybeXS p5-LWP-Protocol-https p5-App-cpanminus p5-XML-Parser p5-XML-Simple p5-DBI
- name: openbsd
version: '7.1'
pkginstall: pkg_add p5-JSON-MaybeXS p5-LWP-Protocol-https p5-XML-Parser p5-XML-Simple p5-DBI
steps:
- uses: actions/checkout@main
with:
submodules: recursive
- name: Test on ${{ matrix.os.name }}
uses: cross-platform-actions/action@master
with:
operating_system: ${{ matrix.os.name }}
version: ${{ matrix.os.version }}
shell: bash
run: |
sudo hostname example.com
sudo ${{ matrix.os.pkginstall }}
curl -L https://cpanmin.us | sudo perl - App::cpanminus
sudo cpanm -ifn CGI::IDS
curl -L https://cpanmin.us | sudo perl - --notest --installdeps --with-configure --with-develop --verbose .
sudo chown -R runner:runner .
AUTOMATED_TESTING=1 AUTHOR_TESTING=1 perl Makefile.PL
make
AUTOMATED_TESTING=1 AUTHOR_TESTING=1 prove -wlmb t