30 lines
1017 B
YAML
30 lines
1017 B
YAML
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 https://gitea.bytelyst.com -> %{http_code}\n" https://gitea.bytelyst.com/
|
|
curl -s https://gitea.bytelyst.com/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"
|