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>
26 lines
845 B
Bash
26 lines
845 B
Bash
# Copyright 2025 The Forgejo Authors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
function test_packages_alpine_version() {
|
|
local alpine_version=$1 forgejo_version=$2
|
|
stop_forgejo
|
|
reset_forgejo $PACKAGES_DIR/alpine-app.ini
|
|
start_forgejo $forgejo_version
|
|
|
|
local d=$PACKAGES_DIR/alpine
|
|
local token=$(cat $DIR/forgejo-curl/token)
|
|
local url=http://${HOST_PORT}
|
|
|
|
log_info "alpine:$alpine_version & Forgejo $forgejo_version"
|
|
docker run --rm --volume $d:$d:ro --workdir $d code.forgejo.org/oci/alpine:$alpine_version ash -c "./test.sh $url $token"
|
|
}
|
|
|
|
function test_packages_alpine() {
|
|
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
|
|
}
|