[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:
tobi
2025-05-13 11:23:30 +00:00
committed by tobi
parent 3fedff3a5a
commit 5925644ad3
2 changed files with 12 additions and 23 deletions

View File

@@ -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

View File

@@ -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