mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 00:50:56 -05:00
run all tests for v1.21 in one go
This commit is contained in:
parent
3117f64380
commit
eaecaaa2e6
3 changed files with 2 additions and 62 deletions
|
@ -1,28 +0,0 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- forgejo.sh
|
|
||||||
- .forgejo/workflows/forgejo-sh.yml
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- forgejo.sh
|
|
||||||
- .forgejo/workflows/forgejo-sh.yml
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
forgejo-sh:
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: |
|
|
||||||
set -x
|
|
||||||
export PATH=$(pwd):$PATH
|
|
||||||
forgejo-dependencies.sh install_docker
|
|
||||||
(
|
|
||||||
echo codeberg.org/forgejo/forgejo 1.19.4-0
|
|
||||||
echo codeberg.org/forgejo/forgejo 1.20.4-1
|
|
||||||
echo codeberg.org/forgejo-experimental/forgejo 1.21.0-2-rc0
|
|
||||||
) | while read url version ; do
|
|
||||||
echo "=========================== launching forgejo v$version =========="
|
|
||||||
forgejo.sh setup root admin1234 $url $version
|
|
||||||
forgejo.sh teardown
|
|
||||||
done
|
|
|
@ -1,24 +0,0 @@
|
||||||
on: [ push, pull_request ]
|
|
||||||
jobs:
|
|
||||||
integration-nested:
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: |
|
|
||||||
set -x
|
|
||||||
LXC_IP_PREFIX=10.0.9 ./forgejo-dependencies.sh
|
|
||||||
export PATH=$(pwd):$PATH
|
|
||||||
forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.20
|
|
||||||
#
|
|
||||||
# Uncomment the following for a shortcut to debugging the Forgejo runner.
|
|
||||||
# It will build the runner from a designated repository and branch instead of
|
|
||||||
# downloading it from a canonical release.
|
|
||||||
#
|
|
||||||
# ./forgejo-test-helper.sh build_runner http://code.forgejo.org/forgejo/runner branch-under-debug
|
|
||||||
# export PATH=$(pwd)/forgejo-runner:$PATH
|
|
||||||
#
|
|
||||||
./forgejo-runner.sh setup
|
|
||||||
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
|
|
||||||
echo "============================ sanity-check ==================="
|
|
||||||
./forgejo-test-helper.sh push_self_action http://root:admin1234@$(cat forgejo-ip):3000 root setup-forgejo vTest
|
|
||||||
./forgejo-test-helper.sh run_workflow testdata/sanity-checks http://root:admin1234@$(cat forgejo-ip):3000 root sanity-check setup-forgejo $(cat forgejo-token)
|
|
|
@ -8,16 +8,8 @@ jobs:
|
||||||
info:
|
info:
|
||||||
- version: "1.21.0-2-rc0"
|
- version: "1.21.0-2-rc0"
|
||||||
image: codeberg.org/forgejo-experimental/forgejo
|
image: codeberg.org/forgejo-experimental/forgejo
|
||||||
tests: "service"
|
# keep "cron" last otherwise it will linger and pollute the following runs
|
||||||
- version: "1.21.0-2-rc0"
|
tests: "${{ vars.V120_TESTS || 'echo artifacts service checkout pull-request container expression local-action docker-action if if-fail cron' }}"
|
||||||
image: codeberg.org/forgejo-experimental/forgejo
|
|
||||||
tests: "artifacts"
|
|
||||||
- version: "1.21.0-2-rc0"
|
|
||||||
image: codeberg.org/forgejo-experimental/forgejo
|
|
||||||
tests: "cron"
|
|
||||||
- version: "1.21.0-2-rc0"
|
|
||||||
image: codeberg.org/forgejo-experimental/forgejo
|
|
||||||
tests: "${{ vars.V121_TESTS || 'echo checkout pull-request container expression local-action docker-action if if-fail' }}"
|
|
||||||
- version: "1.20"
|
- version: "1.20"
|
||||||
image: codeberg.org/forgejo/forgejo
|
image: codeberg.org/forgejo/forgejo
|
||||||
tests: "${{ vars.V120_TESTS || 'echo checkout service container expression local-action docker-action if if-fail' }}"
|
tests: "${{ vars.V120_TESTS || 'echo checkout service container expression local-action docker-action if if-fail' }}"
|
||||||
|
|
Loading…
Reference in a new issue