setup-forgejo/.forgejo/workflows/integration.yml
2023-11-01 18:56:07 +01:00

31 lines
953 B
YAML

on:
push:
branches:
- 'main'
- 'v*'
pull_request:
jobs:
integration:
runs-on: self-hosted
strategy:
matrix:
info:
- version: "1.21.0-6-rc2"
image: codeberg.org/forgejo-experimental/forgejo
- version: "1.20"
image: codeberg.org/forgejo/forgejo
steps:
- uses: actions/checkout@v4
- shell: bash
run: |
LXC_IP_PREFIX=10.0.10 ./forgejo-dependencies.sh
export PATH=$(pwd):$PATH
forgejo.sh setup root admin1234 ${{ matrix.info.image }} ${{ matrix.info.version }}
forgejo-runner.sh setup
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
url=http://root:admin1234@$(cat forgejo-ip):3000
token=$(cat forgejo-token)
echo "============================ demo ==================="
forgejo-test-helper.sh run_workflow testdata/demo $url root demo setup-forgejo $token