setup-forgejo/testdata/lxc-run-forgejo-oci/.forgejo/workflows/test.yml
2023-12-17 23:32:55 +01:00

28 lines
959 B
YAML

# SPDX-License-Identifier: MIT
name: Setup Forgejo
run-name: ${{ github.actor }} is setting up Forgejo
on: [push]
jobs:
setup-forgejo:
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:
image-version: 1.20
- 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 }}