mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-12-27 15:14:53 -05:00
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'v*'
|
|
pull_request:
|
|
|
|
jobs:
|
|
integration:
|
|
runs-on: self-hosted
|
|
strategy:
|
|
matrix:
|
|
info:
|
|
- version: "1.21"
|
|
image: codeberg.org/forgejo/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
|
|
echo "============================ IPv6 ==================="
|
|
forgejo-test-helper.sh run_workflow testdata/ipv6 $url root ipv6 setup-forgejo $token
|