Skip to content

Commit d1b0a74

Browse files
committed
Sync runner-smoke-test.yml from .github repo
1 parent 10c9eee commit d1b0a74

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Runner Smoke Test
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
smoke-test:
11+
runs-on: [self-hosted, linux, x64, big]
12+
timeout-minutes: 10
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Verify required tools
18+
shell: bash
19+
run: |
20+
set -euo pipefail
21+
command -v bash
22+
command -v git
23+
command -v python3
24+
25+
bash --version | head -1
26+
git --version
27+
python3 --version
28+
29+
- name: Collect runner details
30+
shell: bash
31+
run: |
32+
set -euo pipefail
33+
echo "RUNNER_NAME=${RUNNER_NAME:-unknown}"
34+
echo "RUNNER_OS=${RUNNER_OS:-unknown}"
35+
echo "RUNNER_ARCH=${RUNNER_ARCH:-unknown}"
36+
uname -a
37+
id
38+
pwd
39+
40+
- name: Check optional tools
41+
shell: bash
42+
run: |
43+
set -euo pipefail
44+
for tool in gh podman node npm; do
45+
if command -v "$tool" >/dev/null 2>&1; then
46+
echo "$tool: available"
47+
"$tool" --version | head -1
48+
else
49+
echo "$tool: missing"
50+
fi
51+
done
52+
53+
- name: Verify workspace write access
54+
shell: bash
55+
run: |
56+
set -euo pipefail
57+
touch .runner-smoke-test
58+
rm .runner-smoke-test
59+
60+
- name: Write summary
61+
shell: bash
62+
run: |
63+
{
64+
echo "## Runner Smoke Test"
65+
echo ""
66+
echo "- Runner name: ${RUNNER_NAME:-unknown}"
67+
echo "- Runner OS: ${RUNNER_OS:-unknown}"
68+
echo "- Runner architecture: ${RUNNER_ARCH:-unknown}"
69+
echo "- Checkout: passed"
70+
echo "- Required tools: bash, git, python3"
71+
echo "- Optional tools reported in logs: gh, podman, node, npm"
72+
} >> "$GITHUB_STEP_SUMMARY"
73+

0 commit comments

Comments
 (0)