Update documentation #157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: vmactions/freebsd-vm@v1 | |
with: | |
copyback: false | |
release: "13.3" | |
usesh: true | |
prepare: | | |
pkg install -y expect | |
run: | | |
set -o errexit | |
set -o xtrace | |
make install | |
cat >/usr/local/etc/rc.motd <<EOF | |
echo "${GITHUB_SHA}" | |
EOF | |
service dynamic_motd onestart | |
trap 'service dynamic_motd stop' EXIT | |
expect <<EOF | |
spawn cat /var/run/motd | |
expect "${GITHUB_SHA}\r\n" | |
expect eof | |
set result [expr {\$expect_out(buffer) == ""}] | |
puts [expr {\$result ? "PASSED" : "FAILED"}] | |
exit [expr {\$result == 0}] | |
EOF |