2023-04-01 08:52:42 -04:00
|
|
|
on: [ push, pull_request ]
|
2023-03-24 10:59:04 -04:00
|
|
|
jobs:
|
|
|
|
integration:
|
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
2023-03-24 17:42:52 -04:00
|
|
|
- uses: actions/checkout@v3
|
2023-05-16 17:39:10 -04:00
|
|
|
with:
|
|
|
|
submodules: 'true'
|
2023-03-24 10:59:04 -04:00
|
|
|
- run: |
|
|
|
|
set -x
|
2023-04-01 12:22:40 -04:00
|
|
|
LXC_IP_PREFIX=10.0.9 ./forgejo-dependencies.sh
|
2023-04-05 11:40:06 -04:00
|
|
|
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.19
|
2023-04-05 10:48:22 -04:00
|
|
|
#
|
|
|
|
# Uncomment the following for a shortcut to debugging the Forgejo runner.
|
|
|
|
# It will build the runner from a designated repository and branch instead of
|
|
|
|
# downloading it from a canonical release.
|
|
|
|
#
|
|
|
|
# ./forgejo-test-helper.sh build_runner http://code.forgejo.org/forgejo/runner branch-under-debug
|
|
|
|
# export PATH=$(pwd)/forgejo-runner:$PATH
|
|
|
|
#
|
2023-03-24 17:42:52 -04:00
|
|
|
./forgejo-runner.sh setup
|
2023-03-29 09:23:09 -04:00
|
|
|
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
|
2023-03-30 10:11:04 -04:00
|
|
|
./forgejo-test-helper.sh run_workflow testdata/demo http://root:admin1234@$(cat forgejo-ip):3000 root demo setup-forgejo $(cat forgejo-token) > /tmp/output
|
2023-03-29 17:33:49 -04:00
|
|
|
grep '^sha=' /tmp/output
|
2023-03-29 09:23:09 -04:00
|
|
|
./forgejo-test-helper.sh push_self_action http://root:admin1234@$(cat forgejo-ip):3000 root setup-forgejo vTest
|
2023-03-30 10:11:04 -04:00
|
|
|
./forgejo-test-helper.sh run_workflow testdata/sanity-checks http://root:admin1234@$(cat forgejo-ip):3000 root sanity-check setup-forgejo $(cat forgejo-token)
|