mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-12-25 14:22:16 -05:00
add tests for 1.20.1-0 and make it the default
This commit is contained in:
parent
a716fb8639
commit
6f46ba7d49
7 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue