remove env-tests
Some checks failed
/ example-docker-compose (pull_request) Failing after 23s
/ cascade (pull_request_target) Has been cancelled
checks / build and test (pull_request) Has been cancelled
checks / runner exec tests (pull_request) Has been cancelled

This commit is contained in:
Merith-TK 2024-12-28 17:51:02 +00:00
parent efe1babb98
commit dcb0caba6d

View file

@ -65,42 +65,8 @@ jobs:
$cli logs runner-daemon > /tmp/runner.log
grep --quiet 'Start image=code.forgejo.org/oci/node:20-bookworm' /tmp/runner.log
- name: Test the Environment Example
run: |
set -x
cd examples/docker-compose
secret=$(openssl rand -hex 20)
sed -i -e "s/{SHARED_SECRET}/$secret/" compose-forgejo-and-runner-with-envs.yml
cli="docker compose --progress quiet -f compose-forgejo-and-runner-with-envs.yml"
# Launch Forgejo & the runner
#
$cli up -d
for delay in $(seq 60) ; do test -f /srv/runner-data/.runner && break ; sleep 30 ; done
test -f /srv/runner-data/.runner
#
# Run the demo workflow
#
cli="$cli -f compose-demo-workflow.yml"
$cli up -d demo-workflow
#
# Wait for the demo workflow to complete
#
success='DEMO WORKFLOW SUCCESS'
failure='DEMO WORKFLOW FAILURE'
for delay in $(seq 60) ; do
$cli logs demo-workflow > /tmp/out
grep --quiet "$success" /tmp/out && break
grep --quiet "$failure" /tmp/out && break
$cli ps --all
$cli logs --tail=20 runner-daemon demo-workflow
sleep 30
done
grep --quiet "$success" /tmp/out
$cli logs runner-daemon > /tmp/runner.log
grep --quiet 'Start image=code.forgejo.org/oci/node:20-bookworm' /tmp/runner.log
- name: full docker compose logs
if: always()
run: |
cd examples/docker-compose
docker compose -f compose-forgejo-and-runner.yml -f compose-forgejo-and-runner.yml -f compose-demo-workflow.yml logs
docker compose -f compose-forgejo-and-runner.yml -f compose-demo-workflow.yml logs