Skip to content

Commit e2e6498

Browse files
committed
[test] ci: add actuated CI
Actuated runners have Ubuntu with SELinux configured, so we can actually run the test cases here (most of which require SELinux enabled). Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent f56d30b commit e2e6498

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/validate.yml

+59
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,64 @@ jobs:
9393
if: ${{ matrix.race }} == "" # -race is not supported on linux/386
9494
run: make GOARCH=386 test
9595

96+
test-actuated:
97+
runs-on: actuated-arm64-6cpu-8gb
98+
steps:
99+
# https://gist.github.com/alexellis/1f33e581c75e11e161fe613c46180771#file-metering-gha-md
100+
# vmmeter start
101+
- name: Prepare arkade
102+
uses: alexellis/arkade-get@master
103+
with:
104+
crane: latest
105+
print-summary: false
106+
107+
- name: Install vmmeter
108+
run: |
109+
crane export --platform linux/arm64 ghcr.io/openfaasltd/vmmeter:latest | sudo tar -xvf - -C /usr/local/bin
110+
111+
- name: Run vmmeter
112+
uses: self-actuated/vmmeter-action@master
113+
# vmmeter end
114+
115+
- uses: actions/checkout@v4
116+
117+
- name: enable selinux
118+
run: |
119+
sudo apt update
120+
sudo apt install -y policycoreutils selinux-basics selinux-utils
121+
sudo selinux-activate
122+
#------------
123+
sestatus
124+
#------------
125+
126+
- name: host info
127+
run: |
128+
set -x
129+
# Sync `set -x` outputs with command ouputs
130+
exec 2>&1
131+
# Version
132+
uname -a
133+
cat /etc/os-release
134+
# SELinux
135+
sestatus
136+
137+
- name: install Go
138+
uses: actions/setup-go@v5
139+
with:
140+
go-version: 1.23.x
141+
142+
- name: build
143+
run: make build
144+
145+
- name: test
146+
run: make test
147+
148+
- name: test -race
149+
run: make TESTFLAGS="-race" test
150+
151+
- name: test 32-bit
152+
run: make GOARCH=arm test
153+
96154
all-done:
97155
needs:
98156
- commit
@@ -101,6 +159,7 @@ jobs:
101159
- cross
102160
- test-stubs
103161
- test
162+
- test-actuated
104163
runs-on: ubuntu-22.04
105164
steps:
106165
- run: echo "All jobs completed"

0 commit comments

Comments
 (0)