Add macOS smoke test workflow
All checks were successful
Verify Mac Runner / verify-runner (push) Successful in 0s
Check Buildah Build (Safe) / buildah-build (push) Successful in 5s
Mac Runner Smoke Test / Smoke job A (push) Successful in 15s
Mac Runner Smoke Test / Smoke job B (push) Successful in 12s
Mac Runner Smoke Test / Inspect runner workspaces (push) Successful in 0s
All checks were successful
Verify Mac Runner / verify-runner (push) Successful in 0s
Check Buildah Build (Safe) / buildah-build (push) Successful in 5s
Mac Runner Smoke Test / Smoke job A (push) Successful in 15s
Mac Runner Smoke Test / Smoke job B (push) Successful in 12s
Mac Runner Smoke Test / Inspect runner workspaces (push) Successful in 0s
This commit is contained in:
61
.gitea/workflows/macos-smoke.yaml
Normal file
61
.gitea/workflows/macos-smoke.yaml
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
name: Mac Runner Smoke Test
|
||||||
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
smoke-1:
|
||||||
|
name: Smoke job A
|
||||||
|
runs-on: macos-arm64
|
||||||
|
steps:
|
||||||
|
- name: Print host info
|
||||||
|
run: |
|
||||||
|
echo "Running on $(uname -a)"
|
||||||
|
sw_vers || true
|
||||||
|
whoami
|
||||||
|
pwd
|
||||||
|
|
||||||
|
- name: Create local workspace dir
|
||||||
|
run: |
|
||||||
|
mkdir -p _work/test1
|
||||||
|
echo "hello from smoke-1" > _work/test1/hello.txt
|
||||||
|
ls -lah _work/test1
|
||||||
|
|
||||||
|
- name: Simulate work (sleep)
|
||||||
|
run: sleep 15
|
||||||
|
|
||||||
|
smoke-2:
|
||||||
|
name: Smoke job B
|
||||||
|
runs-on: macos-arm64
|
||||||
|
steps:
|
||||||
|
- name: Print host info
|
||||||
|
run: |
|
||||||
|
echo "Running on $(uname -a)"
|
||||||
|
sw_vers || true
|
||||||
|
whoami
|
||||||
|
pwd
|
||||||
|
|
||||||
|
- name: Create local workspace dir
|
||||||
|
run: |
|
||||||
|
mkdir -p _work/test2
|
||||||
|
echo "hello from smoke-2" > _work/test2/hello.txt
|
||||||
|
ls -lah _work/test2
|
||||||
|
|
||||||
|
- name: Simulate work (sleep)
|
||||||
|
run: sleep 12
|
||||||
|
|
||||||
|
inspect-workspaces:
|
||||||
|
name: Inspect runner workspaces
|
||||||
|
runs-on: macos-arm64
|
||||||
|
needs: [smoke-1, smoke-2]
|
||||||
|
steps:
|
||||||
|
- name: List act_runner dir
|
||||||
|
run: |
|
||||||
|
echo "Listing /var/lib/act_runner contents"
|
||||||
|
sudo ls -lah /var/lib/act_runner || true
|
||||||
|
|
||||||
|
- name: Find _work directories and sizes
|
||||||
|
run: |
|
||||||
|
sudo find /var/lib/act_runner -type d -name '_work' -print -exec sudo du -sh {} + || true
|
||||||
|
|
||||||
|
- name: Check for leftover test files
|
||||||
|
run: |
|
||||||
|
sudo find /var/lib/act_runner -type f -name 'hello.txt' -print -exec sudo ls -lah {} + || true
|
||||||
Reference in New Issue
Block a user