2023-04-01 14:52:42 +02:00
|
|
|
on: [ push, pull_request ]
|
2023-03-24 15:59:04 +01:00
|
|
|
jobs:
|
|
|
|
integration:
|
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
2023-03-24 22:42:52 +01:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-24 15:59:04 +01:00
|
|
|
- run: |
|
|
|
|
set -x
|
2023-05-29 17:12:23 +02:00
|
|
|
LXC_IP_PREFIX=10.0.10 ./forgejo-dependencies.sh
|
2023-04-05 17:40:06 +02:00
|
|
|
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.19
|
2023-03-24 22:42:52 +01:00
|
|
|
./forgejo-runner.sh setup
|
2023-03-29 15:23:09 +02:00
|
|
|
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
|
2023-07-05 21:48:51 +02:00
|
|
|
for example in echo container expression local-action ; do
|
2023-05-29 15:26:29 +02:00
|
|
|
echo "============================ example-$example ==================="
|
|
|
|
./forgejo-test-helper.sh run_workflow testdata/example-$example http://root:admin1234@$(cat forgejo-ip):3000 root example-$example setup-forgejo $(cat forgejo-token)
|
|
|
|
done
|
|
|
|
echo "============================ demo ==================="
|
2023-03-30 16:11:04 +02: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 23:33:49 +02:00
|
|
|
grep '^sha=' /tmp/output
|