1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2025-06-08 03:58:19 +02:00

add nested test for action.yml binary support

This commit is contained in:
Earl Warren 2023-12-17 23:32:55 +01:00
parent b2ce91a593
commit 6b431ecf9b
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
4 changed files with 59 additions and 22 deletions

View file

@ -0,0 +1,33 @@
on:
push:
branches:
- 'main'
- 'v*'
pull_request:
#
# Testing that action.yml works as intended, the other tests do not do hat.
#
jobs:
integration-action:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: forgejo.sh & forgejo-runner.sh
run: |
LXC_IP_PREFIX=10.0.9 ./forgejo-dependencies.sh
export PATH=$(pwd):$PATH
forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.20
forgejo-runner.sh setup
echo "============================ upload setup-forgejo ==================="
forgejo-test-helper.sh push_self_action $(cat forgejo-auth-url) root setup-forgejo vTest
- name: lxc-run-forgejo-binary
run: |
export PATH=$(pwd):$PATH
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
forgejo-test-helper.sh run_workflow testdata/lxc-run-forgejo-binary $(cat forgejo-auth-url) root lxc-run-forgejo-binary setup-forgejo $(cat forgejo-token)
- name: lxc-run-forgejo-oci
run: |
export PATH=$(pwd):$PATH
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
forgejo-test-helper.sh run_workflow testdata/lxc-run-forgejo-oci $(cat forgejo-auth-url) root lxc-run-forgejo-oci setup-forgejo $(cat forgejo-token)

View file

@ -1,22 +0,0 @@
on:
push:
branches:
- 'main'
- 'v*'
pull_request:
jobs:
integration-nested:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- run: |
set -x
LXC_IP_PREFIX=10.0.9 ./forgejo-dependencies.sh
export PATH=$(pwd):$PATH
forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.20
forgejo-runner.sh setup
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
echo "============================ sanity-check ==================="
forgejo-test-helper.sh push_self_action http://root:admin1234@$(cat forgejo-ip):3000 root setup-forgejo vTest
forgejo-test-helper.sh run_workflow testdata/sanity-checks http://root:admin1234@$(cat forgejo-ip):3000 root sanity-check setup-forgejo $(cat forgejo-token)