Skip to content

Enable AUTOMATED_TESTING at make stage on CircleCI #59

Enable AUTOMATED_TESTING at make stage on CircleCI

Enable AUTOMATED_TESTING at make stage on CircleCI #59

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: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
# HTML::Entities is part of HTML::Parser
- name: freebsd
version: '13.3'
pkginstall: pkg install -y p5-ExtUtils-MakeMaker p5-Test-Deep p5-Test-Most p5-Test-Needs p5-Test-NoWarnings p5-Test-Number-Delta p5-LWP-Protocol-https p5-HTML-Parser
- name: openbsd
version: '7.5'
pkginstall: pkg_add p5-List-MoreUtils p5-Log-Any
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 - --notest --installdeps --with-configure --with-develop .
sudo chown -R runner:runner .
AUTOMATED_TESTING=1 perl Makefile.PL
AUTOMATED_TESTING=1 make
AUTOMATED_TESTING=1 prove -wlmb t
env:
AUTOMATED_TESTING=1
AUTHOR_TESTING=1
NO_NETWORK_TESTING=1