actions: test {upload,download}-artifacts@v4 support
If Forgejo version is >= 7.0 and Forgejo runner > 3.3.0 artifacts@v4 are tested to work with a forked modified version that claims to be compatible.
This commit is contained in:
parent
c461ace62b
commit
e1fd4cbc0f
2 changed files with 64 additions and 0 deletions
|
@ -76,6 +76,16 @@ function actions_teardown() {
|
|||
stop_daemon forgejo
|
||||
}
|
||||
|
||||
function actions_runner_version() {
|
||||
local runner_version=$($DIR/forgejo-runner --version | sed -n -e 's/forgejo-runner version v//p')
|
||||
if test -z "$runner_version" ; then
|
||||
$DIR/forgejo-runner --version
|
||||
echo failed to parse version
|
||||
false
|
||||
fi
|
||||
echo $runner_version
|
||||
}
|
||||
|
||||
function test_actions() {
|
||||
local versions="${1:-1.20 1.21 $RELEASE_NUMBERS_AND_DEV}"
|
||||
|
||||
|
@ -84,6 +94,13 @@ function test_actions() {
|
|||
log_info "Testing actions for $version"
|
||||
|
||||
actions_setup $version
|
||||
local runner_version=$(actions_runner_version)
|
||||
|
||||
if dpkg --compare-versions $version gt 7.0 && dpkg --compare-versions $runner_version gt 3.3.0 ; then
|
||||
for example in artifacts-v4 ; do
|
||||
run actions_verify_example $example
|
||||
done
|
||||
fi
|
||||
|
||||
for example in echo checkout service container expression local-action docker-action if if-fail ; do
|
||||
run actions_verify_example $example
|
||||
|
|
Loading…
Add table
Reference in a new issue