setup-forgejo/testdata/sanity-checks/.forgejo/workflows/test.yml

20 lines
534 B
YAML
Raw Normal View History

2023-04-01 11:08:06 +02:00
# SPDX-License-Identifier: MIT
2023-03-25 16:57:11 +01:00
name: Setup Forgejo
run-name: ${{ github.actor }} is setting up Forgejo
on: [push]
jobs:
setup-forgejo:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
2023-03-25 22:53:12 +01:00
- id: forgejo
uses: SELF@vTest
2023-03-25 23:07:01 +01:00
with:
image-version: 1.19
- run: |
2023-03-25 22:53:12 +01:00
set -ex
2023-03-29 18:46:49 +02:00
test "${{ steps.forgejo.outputs.token }}"
2023-03-30 16:11:04 +02:00
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
2023-03-25 23:07:01 +01:00
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19