-
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (43 loc) · 1.55 KB
/
bsd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
# 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:
- name: freebsd
version: '13.3'
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 p5-Devel-Size sqlite3 p5-DBD-SQLite p5-File-Slurper
- name: openbsd
version: '7.5'
pkginstall: pkg_add p5-JSON-MaybeXS p5-LWP-Protocol-https p5-XML-Parser p5-XML-Simple p5-DBI p5-Devel-Size sqlite3 p5-DBD-SQLite
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 File::Slurp
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
AUTOMATED_TESTING=1 make
AUTOMATED_TESTING=1 AUTHOR_TESTING=1 prove -wlmb t