mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 02:21:02 -05:00
31 lines
953 B
YAML
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
|