1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2024-09-18 17:36:16 +00:00

Merge pull request 'add tests for 1.20.1-0 and make it the default' (#38) from earl-warren/setup-forgejo:wip-1.20 into main

Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/38
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
earl-warren 2023-07-27 18:59:40 +00:00
commit 1045b2e3a3
7 changed files with 12 additions and 12 deletions

View file

@ -1,10 +1,10 @@
on:
push:
paths:
- forgejo.sh
- .forgejo/workflows/forgejo-sh.yml
pull_request:
paths:
- forgejo.sh
- .forgejo/workflows/forgejo-sh.yml
jobs:
forgejo-sh:
@ -14,7 +14,7 @@ jobs:
- run: |
set -x
./forgejo-dependencies.sh install_docker
for version in 1.19.3-0 ; do
for version in 1.19.4-0 1.20.1-0 ; do
echo "=========================== launching forgejo v$version =========="
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo $version
./forgejo.sh teardown

View file

@ -7,7 +7,7 @@ jobs:
- run: |
set -x
LXC_IP_PREFIX=10.0.9 ./forgejo-dependencies.sh
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.19
./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

View file

@ -17,7 +17,7 @@ jobs:
- run: |
set -x
LXC_IP_PREFIX=10.0.10 ./forgejo-dependencies.sh
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.19
./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

View file

@ -41,7 +41,7 @@ It can only be run on the `self-hosted` platform, running on a host with LXC ins
| parameter | description | required | default |
| --- | --- | --- | --- |
| image | Container image | `false` | codeberg.org/forgejo/forgejo |
| image-version | Container image version | `false` | 1.19 |
| image-version | Container image version | `false` | 1.20 |
| user | Administrator user name | `false` | root |
| password | Administrator password | `false` | admin1234 |
| runner | Runner git repository | `false` | https://code.forgejo.org/forgejo/runner |
@ -76,9 +76,9 @@ jobs:
- id: forgejo
uses: actions/setup-forgejo@v1
with:
image-version: 1.19
image-version: 1.20
- run: |
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.20
```

View file

@ -37,7 +37,7 @@ inputs:
default: 'codeberg.org/forgejo/forgejo'
image-version:
description: 'Container image version'
default: '1.19'
default: '1.20'
user:
description: 'Administrator user name'
default: 'root'

View file

@ -53,7 +53,7 @@ function setup() {
local user="${1:-root}"
local password="${2:-admin1234}"
local image="${3:-codeberg.org/forgejo/forgejo}"
local version="${4:-1.19}"
local version="${4:-1.20}"
run $image $version

View file

@ -13,7 +13,7 @@ jobs:
- id: forgejo
uses: SELF@vTest
with:
image-version: 1.19
image-version: 1.20
- run: |
echo +++++++++++++++++++++++++++++++++++++++++++
echo sanity checking the reset of setup-forgejo
@ -21,7 +21,7 @@ jobs:
test "${{ steps.forgejo.outputs.token }}"
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version >& version.out
if ! grep --quiet 1.19 version.out ; then
if ! grep --quiet 1.20 version.out ; then
cat version.out
exit 1
fi