mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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>
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user