mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 04:00:56 -05:00
add test to verify the runner is registered
This commit is contained in:
parent
6d31f87d40
commit
a131ea4581
2 changed files with 3 additions and 1 deletions
|
@ -81,6 +81,7 @@ runs:
|
||||||
- id: forgejo
|
- id: forgejo
|
||||||
run: |
|
run: |
|
||||||
cd $(mktemp -d)
|
cd $(mktemp -d)
|
||||||
|
cp ${{ github.action_path }}/runner-config.yaml .
|
||||||
LXC_IP_PREFIX=${{ inputs.lxc-ip-prefix }} forgejo-dependencies.sh
|
LXC_IP_PREFIX=${{ inputs.lxc-ip-prefix }} forgejo-dependencies.sh
|
||||||
export CONTAINER=${{ inputs.container }}
|
export CONTAINER=${{ inputs.container }}
|
||||||
forgejo.sh setup ${{ inputs.user }} "${{ inputs.password }}" ${{ inputs.image }} ${{ inputs.image-version }}
|
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 host-port="$(cat forgejo-ip):3000" >> $GITHUB_OUTPUT
|
||||||
echo token=$(cat forgejo-token) >> $GITHUB_OUTPUT
|
echo token=$(cat forgejo-token) >> $GITHUB_OUTPUT
|
||||||
echo runner-logs="$(pwd)/forgejo-runner.log" >> $GITHUB_OUTPUT
|
echo runner-logs="$(pwd)/forgejo-runner.log" >> $GITHUB_OUTPUT
|
||||||
|
echo runner-file="$(pwd)/.runner" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -21,4 +21,4 @@ jobs:
|
||||||
test "${{ steps.forgejo.outputs.token }}"
|
test "${{ steps.forgejo.outputs.token }}"
|
||||||
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
||||||
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19
|
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19
|
||||||
|
test -f ${{ steps.forgejo.outputs.runner-file }}
|
||||||
|
|
Loading…
Reference in a new issue