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
|
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
|
||||||
- evaluate: >-
|
- evaluate: >-
|
||||||
(not ("CI_PIPELINE_FILES" in $env)) ||
|
(not ("CI_PIPELINE_FILES" in $env)) ||
|
||||||
len(CI_PIPELINE_FILES) == 0 ||
|
CI_PIPELINE_FILES == "[]" ||
|
||||||
any(fromJSON(CI_PIPELINE_FILES), {
|
any(fromJSON(CI_PIPELINE_FILES), { # startsWith "internal/" || # startsWith "cmd/" || # startsWith "testrig/" }) ||
|
||||||
# startsWith "internal/" ||
|
len(fromJSON(CI_PIPELINE_FILES)) == 0
|
||||||
# startsWith "cmd/" ||
|
|
||||||
# startsWith "testrig/"
|
|
||||||
})
|
|
||||||
|
|
||||||
# We use golangci-lint for linting.
|
# We use golangci-lint for linting.
|
||||||
# See: https://golangci-lint.run/
|
# See: https://golangci-lint.run/
|
||||||
@@ -60,13 +57,9 @@ steps:
|
|||||||
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
|
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
|
||||||
- evaluate: >-
|
- evaluate: >-
|
||||||
(not ("CI_PIPELINE_FILES" in $env)) ||
|
(not ("CI_PIPELINE_FILES" in $env)) ||
|
||||||
len(CI_PIPELINE_FILES) == 0 ||
|
CI_PIPELINE_FILES == "[]" ||
|
||||||
any(fromJSON(CI_PIPELINE_FILES), {
|
any(fromJSON(CI_PIPELINE_FILES), { # startsWith "internal/" || # startsWith "cmd/" || # startsWith "testrig/" || # startsWith "vendor/" }) ||
|
||||||
# startsWith "internal/" ||
|
len(fromJSON(CI_PIPELINE_FILES)) == 0
|
||||||
# startsWith "cmd/" ||
|
|
||||||
# startsWith "testrig/" ||
|
|
||||||
# startsWith "vendor/"
|
|
||||||
})
|
|
||||||
|
|
||||||
image: golang:1.23-alpine
|
image: golang:1.23-alpine
|
||||||
pull: true
|
pull: true
|
||||||
@@ -116,8 +109,9 @@ steps:
|
|||||||
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
|
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
|
||||||
- evaluate: >-
|
- evaluate: >-
|
||||||
(not ("CI_PIPELINE_FILES" in $env)) ||
|
(not ("CI_PIPELINE_FILES" in $env)) ||
|
||||||
len(CI_PIPELINE_FILES) == 0 ||
|
CI_PIPELINE_FILES == "[]" ||
|
||||||
any(fromJSON(CI_PIPELINE_FILES), { # startsWith "web/source/" })
|
any(fromJSON(CI_PIPELINE_FILES), { # startsWith "web/source/" }) ||
|
||||||
|
len(fromJSON(CI_PIPELINE_FILES)) == 0
|
||||||
|
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
pull: true
|
pull: true
|
||||||
|
@@ -24,14 +24,9 @@ steps:
|
|||||||
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
|
# https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables
|
||||||
- evaluate: >-
|
- evaluate: >-
|
||||||
(not ("CI_PIPELINE_FILES" in $env)) ||
|
(not ("CI_PIPELINE_FILES" in $env)) ||
|
||||||
any(fromJSON(CI_PIPELINE_FILES), {
|
CI_PIPELINE_FILES == "[]" ||
|
||||||
# startsWith "internal/" ||
|
any(fromJSON(CI_PIPELINE_FILES), { # startsWith "internal/" || # startsWith "cmd/" || # startsWith "testrig/" || # startsWith "vendor/" || # startsWith "web/" || # == "Dockerfile" }) ||
|
||||||
# startsWith "cmd/" ||
|
len(fromJSON(CI_PIPELINE_FILES)) == 0
|
||||||
# startsWith "testrig/" ||
|
|
||||||
# startsWith "vendor/" ||
|
|
||||||
# startsWith "web/" ||
|
|
||||||
# == "Dockerfile"
|
|
||||||
})
|
|
||||||
|
|
||||||
# https://codeberg.org/superseriousbusiness/gotosocial-woodpecker-build
|
# https://codeberg.org/superseriousbusiness/gotosocial-woodpecker-build
|
||||||
image: superseriousbusiness/gotosocial-woodpecker-build:0.11.0
|
image: superseriousbusiness/gotosocial-woodpecker-build:0.11.0
|
||||||
|
Reference in New Issue
Block a user