-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 924 Bytes
/
ci.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
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