ci: run Forgejo Actions & Packages test w/ dynamic matrix (#1367)
Incorporates these changes: - When `forgejo/build-from-sources` is present, Actions & Packages tests are run only against the built versions. Otherwise, they are run against the versions defined in `$RELEASE_NUMBERS` - Updates Packages tests which are testing Alpine publishing to use currently supported Alpine releases - Actions & Packages tests are run in a matrix, allowing parallel execution Only the Actions & Packages tests take a significant amount of time (>10 minutes), so changes have been limited to those test suites -- every test suite that is moved into a matrix adds additional overhead in the 1 minute `prepare-end-to-end` step. Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1367 Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net> Co-committed-by: Mathieu Fenniak <mathieu@fenniak.net>
This commit is contained in:
parent
6e89c972c3
commit
1064337c89
13 changed files with 24 additions and 7 deletions
|
|
@ -1 +0,0 @@
|
|||
alpine-7.0
|
||||
|
|
@ -7,7 +7,7 @@ function test_packages_alpine_version() {
|
|||
reset_forgejo $PACKAGES_DIR/alpine-app.ini
|
||||
start_forgejo $forgejo_version
|
||||
|
||||
local d=$PACKAGES_DIR/alpine-$forgejo_version
|
||||
local d=$PACKAGES_DIR/alpine
|
||||
local token=$(cat $DIR/forgejo-curl/token)
|
||||
local url=http://${HOST_PORT}
|
||||
|
||||
|
|
@ -16,8 +16,10 @@ function test_packages_alpine_version() {
|
|||
}
|
||||
|
||||
function test_packages_alpine() {
|
||||
for alpine_version in 3.20 3.21; do
|
||||
for forgejo_version in 7.0 10.0; do
|
||||
local forgejo_versions="${1:-$RELEASE_NUMBERS}"
|
||||
|
||||
for alpine_version in 3.22 3.23; do
|
||||
for forgejo_version in $forgejo_versions; do
|
||||
test_packages_alpine_version $alpine_version $forgejo_version
|
||||
done
|
||||
done
|
||||
|
|
|
|||
|
|
@ -7,5 +7,7 @@ PACKAGES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||
source $PACKAGES_DIR/alpine.sh
|
||||
|
||||
function test_packages() {
|
||||
run test_packages_alpine
|
||||
local forgejo_versions="${1:-$RELEASE_NUMBERS}"
|
||||
|
||||
run test_packages_alpine $forgejo_versions
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue