test: add test

This commit is contained in:
Michael Kriese 2026-01-21 09:55:34 +01:00
parent e75cfe89a2
commit 9018dfa892
No known key found for this signature in database
GPG key ID: F8D7748549A5986A

View file

@ -36,7 +36,7 @@ jobs:
direction: upload
tag: v2.0
token: FORGEJO_TEST_TOKEN
skip-assets: true
release-dir: upload-dir-v2
release-notes: |-
No shell expansion should on these notes:
- $(some_command)
@ -92,5 +92,35 @@ jobs:
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: |
diff -u upload-dir-v3 download-dir-v3
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-upload-v4
uses: SELF@vTest
with:
direction: upload
tag: v4.0
token: FORGEJO_TEST_TOKEN
skip-assets: true
verbose: true
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-download-v4
uses: SELF@vTest
with:
direction: download
tag: v4.0
token: FORGEJO_TEST_TOKEN
release-dir: download-dir-v4
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: |
if [ ! -d download-dir-v4 ]; then
echo "Missing download dir"
exit 1
fi
if [ ! -z "$( ls -A download-dir-v4 )" ]; then
echo "Unexpected download files: $( ls -A download-dir-v4 )"
exit 1
fi
- if: failure()
run: docker logs forgejo