Skip to content

🪼 mommy uses ubuntu 22 for netbsd~ #224

🪼 mommy uses ubuntu 22 for netbsd~

🪼 mommy uses ubuntu 22 for netbsd~ #224

Workflow file for this run

name: CI
on: [push]
jobs:
test-netbsd:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test script and package
uses: vmactions/netbsd-vm@v1
with:
usesh: true
prepare: |
set -e
export PATH="/usr/sbin:$PATH" # Add `pkg_*` commands to path
echo "::group::Install basic packages"
pkg_add git gmake mozilla-rootcerts-openssl
echo "::endgroup::"
echo "::group::Install ShellSpec"
git clone --depth=1 https://github.com/shellspec/shellspec.git
gmake -C shellspec install
echo "::endgroup::"
echo "::group::Install additional shells"
pkg_add fish zsh
touch "$HOME/.zshrc"
echo "::endgroup::"
echo "::group::Install fpm"
pkg_add ruby
/usr/pkg/bin/gem install --no-document fpm
pkg_add pkg_install # This is necessary to make `fpm` work with `pkgin` format for some reason
echo "::endgroup::"
echo "::group::Ignore ownership issues"
git config --global --add safe.directory "$GITHUB_WORKSPACE"
echo "::endgroup::"
run: |
set -e
export PATH="/usr/sbin:$PATH" # Add `pkg_*` commands to path
export MOMMY_ZSH_SKIP=1 # Zsh completion capturing totally does not work
echo "::group::Test script"
gmake test
echo "::endgroup::"
echo "::group::Build package"
gmake dist/netbsd
echo "::endgroup::"
echo "::group::Install package"
pkg_add ./dist/mommy-*+netbsd.tgz
echo "::endgroup::"
echo "::group::Test package"
gmake system=1 test
echo "::endgroup::"
echo "::group::Uninstall package"
pkg_delete mommy
echo "::endgroup::"