Commit graph

183 commits

Author SHA1 Message Date
cascading-pr
de76a9c85f cascading-pr update 2023-10-26 15:02:31 +00:00
Earl Warren
a580cb63b6
only run CI on main or v* branches + pull_request_target 2023-10-15 17:59:57 +02:00
earl-warren
63eec0e8f3 Merge pull request 'automatically build from source if the version is @branch' (#66) from earl-warren/setup-forgejo:wip-version into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/66
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-15 14:28:21 +00:00
Earl Warren
40950130a5
automatically build from source if the version is @branch 2023-10-14 23:22:19 +02:00
earl-warren
0e868f6735 Merge pull request 'error if trying to push a self action that has uncommitted changes' (#64) from earl-warren/setup-forgejo:wip-diff-self-ache into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/64
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-12 16:26:00 +00:00
Earl Warren
8744b5c5cf
error if trying to push a self action that has uncommitted changes
otherwise it will not push these changes and this is not what is
intended during development
2023-10-12 16:03:16 +02:00
earl-warren
6821c1eaf7 Merge pull request 'cleanup the runner cache when uploading self action' (#63) from earl-warren/setup-forgejo:wip-runner-cache into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/63
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-12 14:01:41 +00:00
Earl Warren
87d8b85700
cleanup the runner cache when uploading self action
if the cache is not cleared, the action that was just uploaded
with the latest changes won't be used, the cached version will.
2023-10-12 15:47:32 +02:00
earl-warren
9774672bc7 Merge pull request 'set the queue types to immediate' (#61) from earl-warren/setup-forgejo:wip-immediate into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/61
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-11 17:14:19 +00:00
earl-warren
5f4cd47bff Merge pull request 'forgejo.sh test cover 1.21.0-3-rc0 & 1.20.5-0' (#62) from earl-warren/setup-forgejo:wip-experimental-test into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/62
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-11 17:14:03 +00:00
Earl Warren
e1fd9cabc8
forgejo.sh test cover 1.21.0-3-rc0 & 1.20.5-0 2023-10-11 18:45:44 +02:00
dachary
96bb506e92 Merge pull request 'upgrade tests to 1.21.0-3-rc0' (#60) from earl-warren/setup-forgejo:wip-experimental-test into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/60
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-11 16:42:42 +00:00
Earl Warren
9e6e1c679b
set the queue types to immediate
Similar to what is done in the configuration of integration tests, it
helps reduce asynchronous events that require retries and increase
delays.
2023-10-11 18:40:44 +02:00
Earl Warren
89763b9572
upgrade tests to 1.21.0-3-rc0 2023-10-11 18:31:18 +02:00
earl-warren
3085b274f0 Merge pull request 'make forgejo-runner.sh run out of the source directory' (#59) from earl-warren/setup-forgejo:wip-runner-config into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/59
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-11 16:29:38 +00:00
Earl Warren
a2d04e1ca5
make forgejo-runner.sh run out of the source directory
it needs to find the default config file
2023-10-11 15:44:25 +02:00
earl-warren
37e5096b0d Merge pull request 'example-push-cancel: test that pushing to a branch cancels workflows' (#57) from earl-warren/setup-forgejo:wip-example-cancel into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/57
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-07 22:28:02 +00:00
Earl Warren
7243566bce
example-service: only one workflow to avoid breakage 2023-10-08 00:15:32 +02:00
Earl Warren
fccbd1ce6b
example-push-cancel: test that pushing to a branch cancels workflows 2023-10-08 00:07:05 +02:00
Earl Warren
44400632c5
document variable controlled debug loop 2023-10-07 23:39:35 +02:00
Earl Warren
0fc67c08f7
example-checkout: only one workflow to avoid breakage
aggregated statuses are confusing
2023-10-07 23:39:35 +02:00
Earl Warren
7b5b59d821
do not rely on a hacky way to obtain the sha of the branch 2023-10-07 23:39:35 +02:00
earl-warren
179856df25 Merge pull request 'restore workflows accidentally removed' (#56) from earl-warren/setup-forgejo:wip-tests into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/56
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-07 15:36:22 +00:00
Earl Warren
48958da231
restore workflows accidentally removed
resurected from https://code.forgejo.org/actions/setup-forgejo/pulls/54/files
2023-10-06 07:45:13 +02:00
earl-warren
15a24e808e Merge pull request 'fix transient errors in tests' (#54) from earl-warren/setup-forgejo:wip-artifacts into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/54
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-04 19:33:24 +00:00
Earl Warren
713a5d019d
example-artifacts must run in a single workflow
otherwise the status will be success before all status are actually
complete and create confusion
2023-10-04 21:20:02 +02:00
Earl Warren
15a46373fb
forgejo-runner.sh reload must wait for the daemon to stop 2023-10-04 21:20:02 +02:00
Earl Warren
65714b4555
better verbosity for integration tests 2023-10-04 21:20:02 +02:00
Earl Warren
eaecaaa2e6
run all tests for v1.21 in one go 2023-10-04 21:19:45 +02:00
earl-warren
3117f64380 Merge pull request 'upgrade runner 3.0.1' (#53) from earl-warren/setup-forgejo:wip-test-runner-act into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/53
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-10-04 15:44:49 +00:00
Earl Warren
78e5741fba
v3.0.0 and above have a different naming scheme 2023-10-04 17:04:00 +02:00
Earl Warren
96cc7b4991
default runner is v3.0.1 2023-10-04 16:54:14 +02:00
Earl Warren
2657043de5
upgrade tests to v1.21.0-2-rc0 2023-10-04 16:21:07 +02:00
Earl Warren
5cf6f35778
add tests for actions/checkout 2023-10-04 15:34:19 +02:00
Earl Warren
7f23c0bd5f
upgrade go v1.21.1 2023-10-04 15:33:35 +02:00
earl-warren
c2b00566d0 Merge pull request 'add example of artifact usage' (#51) from earl-warren/setup-forgejo:wip-artifacts into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/51
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-09-29 22:38:18 +00:00
Earl Warren
3b72d00aad
dedicated environment for the non-trivial tests 2023-09-30 00:30:06 +02:00
Earl Warren
64e3b2e23e
show all statuses on failure 2023-09-30 00:30:02 +02:00
Earl Warren
fdd4ccf4c3
use vars to control the jobs 2023-09-29 22:44:24 +02:00
Earl Warren
06709db2c5
use code.forgejo.org/oci as an OCI registry 2023-09-29 22:44:24 +02:00
Earl Warren
cafd1de763
cron will linger, give it an insolated run 2023-09-29 17:56:11 +02:00
Earl Warren
fc548f5117
add example of artifact usage 2023-09-29 16:35:59 +02:00
earl-warren
658c3ba60d Merge pull request 'example: pull-request events' (#50) from earl-warren/setup-forgejo:wip-pull-request into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/50
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-09-27 21:36:38 +00:00
Earl Warren
356d879c4d
example: pull-request events 2023-09-27 22:34:59 +02:00
earl-warren
a80989ce28 Merge pull request 'add example of cron task' (#49) from earl-warren/setup-forgejo:wip-cron into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/49
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-09-24 20:22:37 +00:00
Earl Warren
7e8c8064af
add example of cron task 2023-09-24 22:04:19 +02:00
earl-warren
b081450249 Merge pull request 'include forgejo-curl.sh' (#48) from earl-warren/setup-forgejo:wip-forgejo-curl into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/48
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-09-24 16:32:55 +00:00
Earl Warren
d25f704446
include forgejo-curl.sh 2023-09-24 18:16:04 +02:00
earl-warren
f93d932cf0 Merge pull request 'forgejo.sh test for 1.21.0-0-rc0' (#46) from earl-warren/setup-forgejo:wip-v1.21 into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/46
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2023-09-23 19:07:23 +00:00
Earl Warren
5e489b9595
forgejo.sh test for 1.21.0-0-rc0 2023-09-23 17:00:36 +02:00