summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <tobi.smethurst@protonmail.com>2025-05-13 11:23:30 +0000
committerLibravatar tobi <kipvandenbos@noreply.codeberg.org>2025-05-13 11:23:30 +0000
commit5925644ad363cbbfc5a83ac86fdcea5495cdca11 (patch)
treed93ecccbd6c43064922c763e4b0a9f159d286e93
parent[chore] Tidy up previous interaction policy migrations (#4171) (diff)
downloadgotosocial-5925644ad363cbbfc5a83ac86fdcea5495cdca11.tar.xz
[chore] Update woodpecker to catch `len(fromJSON(CI_PIPELINE_FILES)) == 0` (#4177)
This'll hopefully catch some straggler occurrences of the tests not wanting to run. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4177 Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
-rw-r--r--.woodpecker/pr.yaml24
-rw-r--r--.woodpecker/snapshot.yaml11
2 files changed, 12 insertions, 23 deletions
diff --git a/.woodpecker/pr.yaml b/.woodpecker/pr.yaml
index 78c7ccc43..7a392ad50 100644
--- a/.woodpecker/pr.yaml
+++ b/.woodpecker/pr.yaml
@@ -16,12 +16,9 @@ steps:
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
- evaluate: >-
(not ("CI_PIPELINE_FILES" in $env)) ||
- len(CI_PIPELINE_FILES) == 0 ||
- any(fromJSON(CI_PIPELINE_FILES), {
- # startsWith "internal/" ||
- # startsWith "cmd/" ||
- # startsWith "testrig/"
- })
+ CI_PIPELINE_FILES == "[]" ||
+ any(fromJSON(CI_PIPELINE_FILES), { # startsWith "internal/" || # startsWith "cmd/" || # startsWith "testrig/" }) ||
+ len(fromJSON(CI_PIPELINE_FILES)) == 0
# We use golangci-lint for linting.
# See: https://golangci-lint.run/
@@ -60,13 +57,9 @@ steps:
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
- evaluate: >-
(not ("CI_PIPELINE_FILES" in $env)) ||
- len(CI_PIPELINE_FILES) == 0 ||
- any(fromJSON(CI_PIPELINE_FILES), {
- # startsWith "internal/" ||
- # startsWith "cmd/" ||
- # startsWith "testrig/" ||
- # startsWith "vendor/"
- })
+ CI_PIPELINE_FILES == "[]" ||
+ any(fromJSON(CI_PIPELINE_FILES), { # startsWith "internal/" || # startsWith "cmd/" || # startsWith "testrig/" || # startsWith "vendor/" }) ||
+ len(fromJSON(CI_PIPELINE_FILES)) == 0
image: golang:1.23-alpine
pull: true
@@ -116,8 +109,9 @@ steps:
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
- evaluate: >-
(not ("CI_PIPELINE_FILES" in $env)) ||
- len(CI_PIPELINE_FILES) == 0 ||
- any(fromJSON(CI_PIPELINE_FILES), { # startsWith "web/source/" })
+ CI_PIPELINE_FILES == "[]" ||
+ any(fromJSON(CI_PIPELINE_FILES), { # startsWith "web/source/" }) ||
+ len(fromJSON(CI_PIPELINE_FILES)) == 0
image: node:lts-alpine
pull: true
diff --git a/.woodpecker/snapshot.yaml b/.woodpecker/snapshot.yaml
index de1e9f57f..17afd96b5 100644
--- a/.woodpecker/snapshot.yaml
+++ b/.woodpecker/snapshot.yaml
@@ -24,14 +24,9 @@ steps:
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
- evaluate: >-
(not ("CI_PIPELINE_FILES" in $env)) ||
- any(fromJSON(CI_PIPELINE_FILES), {
- # startsWith "internal/" ||
- # startsWith "cmd/" ||
- # startsWith "testrig/" ||
- # startsWith "vendor/" ||
- # startsWith "web/" ||
- # == "Dockerfile"
- })
+ CI_PIPELINE_FILES == "[]" ||
+ any(fromJSON(CI_PIPELINE_FILES), { # startsWith "internal/" || # startsWith "cmd/" || # startsWith "testrig/" || # startsWith "vendor/" || # startsWith "web/" || # == "Dockerfile" }) ||
+ len(fromJSON(CI_PIPELINE_FILES)) == 0
# https://codeberg.org/superseriousbusiness/gotosocial-woodpecker-build
image: superseriousbusiness/gotosocial-woodpecker-build:0.11.0