2023-10-15 11:59:57 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'v*'
|
2023-10-28 18:52:53 -04:00
|
|
|
pull_request:
|
2023-07-08 08:06:13 -04:00
|
|
|
|
2023-03-24 10:59:04 -04:00
|
|
|
jobs:
|
|
|
|
integration:
|
|
|
|
runs-on: self-hosted
|
2023-09-24 14:32:40 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
info:
|
2023-11-09 10:01:56 -05:00
|
|
|
- version: "1.21.0-7-rc2"
|
2023-09-24 14:32:40 -04:00
|
|
|
image: codeberg.org/forgejo-experimental/forgejo
|
|
|
|
- version: "1.20"
|
|
|
|
image: codeberg.org/forgejo/forgejo
|
2023-03-24 10:59:04 -04:00
|
|
|
steps:
|
2023-10-28 18:37:25 -04:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- shell: bash
|
2023-09-29 14:19:00 -04:00
|
|
|
run: |
|
2023-05-29 11:12:23 -04:00
|
|
|
LXC_IP_PREFIX=10.0.10 ./forgejo-dependencies.sh
|
2023-09-24 10:54:52 -04:00
|
|
|
export PATH=$(pwd):$PATH
|
2023-09-24 14:32:40 -04:00
|
|
|
forgejo.sh setup root admin1234 ${{ matrix.info.image }} ${{ matrix.info.version }}
|
|
|
|
forgejo-runner.sh setup
|
2023-03-29 09:23:09 -04:00
|
|
|
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
|
2023-10-07 17:27:24 -04:00
|
|
|
url=http://root:admin1234@$(cat forgejo-ip):3000
|
|
|
|
token=$(cat forgejo-token)
|
2023-09-02 10:21:10 -04:00
|
|
|
|
2023-10-04 12:11:42 -04:00
|
|
|
echo "============================ demo ==================="
|
2023-10-07 17:27:24 -04:00
|
|
|
forgejo-test-helper.sh run_workflow testdata/demo $url root demo setup-forgejo $token
|