ci: add Gitea act_runner smoke-test workflow
Some checks failed
Gitea Runner Smoke Test / smoke (push) Failing after 3m1s
Some checks failed
Gitea Runner Smoke Test / smoke (push) Failing after 3m1s
This commit is contained in:
parent
16d8b742e0
commit
fceee7d82d
29
.gitea/workflows/runner-smoke.yml
Normal file
29
.gitea/workflows/runner-smoke.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Gitea Runner Smoke Test
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: [runner/gitea-smoke]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
smoke:
|
||||||
|
runs-on: [ubuntu-latest, bytelyst, hostinger]
|
||||||
|
steps:
|
||||||
|
- name: Print runtime
|
||||||
|
run: |
|
||||||
|
echo "host=$(hostname) user=$(whoami)"
|
||||||
|
grep '^PRETTY_NAME=' /etc/os-release || true
|
||||||
|
- name: Node and npm
|
||||||
|
run: node --version && npm --version
|
||||||
|
- name: Install pinned pnpm
|
||||||
|
run: |
|
||||||
|
npm install -g pnpm@9.12.0
|
||||||
|
pnpm --version
|
||||||
|
- name: Check Gitea reachability from container
|
||||||
|
run: |
|
||||||
|
echo "Gitea health from runner container:"
|
||||||
|
curl -s -o /dev/null -w " via host.docker.internal:3300 -> %{http_code}\n" http://host.docker.internal:3300/
|
||||||
|
curl -s http://host.docker.internal:3300/api/v1/version | head -c 200; echo
|
||||||
|
- name: Confirm token is not mounted in smoke workflow
|
||||||
|
run: |
|
||||||
|
test ! -e /run/secrets/gitea_npm_token
|
||||||
|
echo "PASS: publish token is not mounted in smoke workflow"
|
||||||
Loading…
Reference in New Issue
Block a user