1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2024-09-18 17:36:16 +00:00
setup-forgejo/testdata/lxc-run-forgejo-binary/.forgejo/workflows/test.yml

27 lines
968 B
YAML

# SPDX-License-Identifier: MIT
on: [push]
jobs:
setup-binary:
runs-on: self-hosted
steps:
- run: |
echo +++++++++++++++++++++++++++++++++++++++++++
echo about to actions/checkout@v3 for SELF@vTest
- uses: actions/checkout@v3
- id: forgejo
uses: SELF@vTest
with:
binary: https://codeberg.org/forgejo/forgejo/releases/download/v1.20.6-1/forgejo-1.20.6-1-linux-amd64
- run: |
echo +++++++++++++++++++++++++++++++++++++++++++
echo sanity checking the reset of setup-forgejo
set -ex
test "${{ steps.forgejo.outputs.token }}"
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version >& version.out
if ! grep --quiet 1.20 version.out ; then
cat version.out
exit 1
fi
test -f ${{ steps.forgejo.outputs.runner-file }}