mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 01:20:56 -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:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- forgejo.sh
|
- .forgejo/workflows/forgejo-sh.yml
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- forgejo.sh
|
- .forgejo/workflows/forgejo-sh.yml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
forgejo-sh:
|
forgejo-sh:
|
||||||
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- run: |
|
- run: |
|
||||||
set -x
|
set -x
|
||||||
./forgejo-dependencies.sh install_docker
|
./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 =========="
|
echo "=========================== launching forgejo v$version =========="
|
||||||
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo $version
|
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo $version
|
||||||
./forgejo.sh teardown
|
./forgejo.sh teardown
|
||||||
|
|
|
@ -7,7 +7,7 @@ jobs:
|
||||||
- run: |
|
- run: |
|
||||||
set -x
|
set -x
|
||||||
LXC_IP_PREFIX=10.0.9 ./forgejo-dependencies.sh
|
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.
|
# Uncomment the following for a shortcut to debugging the Forgejo runner.
|
||||||
# It will build the runner from a designated repository and branch instead of
|
# It will build the runner from a designated repository and branch instead of
|
||||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
- run: |
|
- run: |
|
||||||
set -x
|
set -x
|
||||||
LXC_IP_PREFIX=10.0.10 ./forgejo-dependencies.sh
|
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.
|
# Uncomment the following for a shortcut to debugging the Forgejo runner.
|
||||||
# It will build the runner from a designated repository and branch instead of
|
# 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 |
|
| parameter | description | required | default |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| image | Container image | `false` | codeberg.org/forgejo/forgejo |
|
| 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 |
|
| user | Administrator user name | `false` | root |
|
||||||
| password | Administrator password | `false` | admin1234 |
|
| password | Administrator password | `false` | admin1234 |
|
||||||
| runner | Runner git repository | `false` | https://code.forgejo.org/forgejo/runner |
|
| runner | Runner git repository | `false` | https://code.forgejo.org/forgejo/runner |
|
||||||
|
@ -76,9 +76,9 @@ jobs:
|
||||||
- id: forgejo
|
- id: forgejo
|
||||||
uses: actions/setup-forgejo@v1
|
uses: actions/setup-forgejo@v1
|
||||||
with:
|
with:
|
||||||
image-version: 1.19
|
image-version: 1.20
|
||||||
- run: |
|
- 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'
|
default: 'codeberg.org/forgejo/forgejo'
|
||||||
image-version:
|
image-version:
|
||||||
description: 'Container image version'
|
description: 'Container image version'
|
||||||
default: '1.19'
|
default: '1.20'
|
||||||
user:
|
user:
|
||||||
description: 'Administrator user name'
|
description: 'Administrator user name'
|
||||||
default: 'root'
|
default: 'root'
|
||||||
|
|
|
@ -53,7 +53,7 @@ function setup() {
|
||||||
local user="${1:-root}"
|
local user="${1:-root}"
|
||||||
local password="${2:-admin1234}"
|
local password="${2:-admin1234}"
|
||||||
local image="${3:-codeberg.org/forgejo/forgejo}"
|
local image="${3:-codeberg.org/forgejo/forgejo}"
|
||||||
local version="${4:-1.19}"
|
local version="${4:-1.20}"
|
||||||
|
|
||||||
run $image $version
|
run $image $version
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ jobs:
|
||||||
- id: forgejo
|
- id: forgejo
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
with:
|
with:
|
||||||
image-version: 1.19
|
image-version: 1.20
|
||||||
- run: |
|
- run: |
|
||||||
echo +++++++++++++++++++++++++++++++++++++++++++
|
echo +++++++++++++++++++++++++++++++++++++++++++
|
||||||
echo sanity checking the reset of setup-forgejo
|
echo sanity checking the reset of setup-forgejo
|
||||||
|
@ -21,7 +21,7 @@ jobs:
|
||||||
test "${{ steps.forgejo.outputs.token }}"
|
test "${{ steps.forgejo.outputs.token }}"
|
||||||
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
||||||
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version >& version.out
|
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
|
cat version.out
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue