add test to verify the runner is registered

This commit is contained in:
Earl Warren 2023-05-23 01:29:17 +02:00
parent 6d31f87d40
commit a131ea4581
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 3 additions and 1 deletions

View file

@ -81,6 +81,7 @@ runs:
- id: forgejo
run: |
cd $(mktemp -d)
cp ${{ github.action_path }}/runner-config.yaml .
LXC_IP_PREFIX=${{ inputs.lxc-ip-prefix }} forgejo-dependencies.sh
export CONTAINER=${{ inputs.container }}
forgejo.sh setup ${{ inputs.user }} "${{ inputs.password }}" ${{ inputs.image }} ${{ inputs.image-version }}
@ -89,4 +90,5 @@ runs:
echo host-port="$(cat forgejo-ip):3000" >> $GITHUB_OUTPUT
echo token=$(cat forgejo-token) >> $GITHUB_OUTPUT
echo runner-logs="$(pwd)/forgejo-runner.log" >> $GITHUB_OUTPUT
echo runner-file="$(pwd)/.runner" >> $GITHUB_OUTPUT
shell: bash

View file

@ -21,4 +21,4 @@ jobs:
test "${{ steps.forgejo.outputs.token }}"
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19
test -f ${{ steps.forgejo.outputs.runner-file }}