add schedule runs-on variables test for post 7.0 releases (#151)
reimplements: forgejo/end-to-end#146 for 8.0-dev and 8.0-test Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/151 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
This commit is contained in:
parent
1a3b74f520
commit
416db9031b
4 changed files with 68 additions and 1 deletions
|
@ -6,6 +6,7 @@ ACTIONS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||
function actions_verify_example() {
|
||||
local example=$1
|
||||
|
||||
export HOST_PORT
|
||||
export url=http://${FORGEJO_USER}:${FORGEJO_PASSWORD}@${HOST_PORT}
|
||||
export token=$(cat $DOT_FORGEJO_CURL/token)
|
||||
|
||||
|
@ -107,9 +108,21 @@ function test_actions() {
|
|||
done
|
||||
|
||||
if dpkg --compare-versions $version gt 1.20 ; then
|
||||
for example in push tag push-cancel artifacts pull-request context cron ; do
|
||||
for example in push tag push-cancel artifacts pull-request context ; do
|
||||
run actions_verify_example $example
|
||||
done
|
||||
fi
|
||||
|
||||
if dpkg --compare-versions $version gt 1.20 && dpkg --compare-versions $version lt 7.1 ; then
|
||||
for example in cron ; do
|
||||
run actions_verify_example $example
|
||||
done
|
||||
fi
|
||||
|
||||
if dpkg --compare-versions $version ge 7.1 ; then
|
||||
for example in post-7-0-schedule ; do
|
||||
run actions_verify_example $example
|
||||
done
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue