mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-09 02:47:29 +02:00
ci: treat everything under tests/ as a Go change
tests/ holds only Go test scaffolding: the shared mocks, tests/fixtures, and tests/navidrome-test.toml, which tests.Init reads for every suite. A change to any of it can alter a Go test result, and the directory can never collide with a frontend or docs path. This deliberately does not cover testdata/ generally. Measured over the full history, 99 of 103 pull requests touching testdata/ or tests/fixtures/ already matched the Go filter, and the single missed pull request was a frontend one that a broader pattern would have made worse by running the whole Go matrix.
This commit is contained in:
parent
579cc3c9ff
commit
98e435490d
1 changed files with 1 additions and 1 deletions
2
.github/workflows/detect-changes.sh
vendored
2
.github/workflows/detect-changes.sh
vendored
|
|
@ -20,7 +20,7 @@
|
|||
set -uo pipefail
|
||||
export LC_ALL=C
|
||||
|
||||
GO_RE='(\.go$|(^|/)go\.(mod|sum)$|^Makefile$|^\.golangci\.yml$|^resources/|^db/migrations/)'
|
||||
GO_RE='(\.go$|(^|/)go\.(mod|sum)$|^Makefile$|^\.golangci\.yml$|^resources/|^db/migrations/|^tests/)'
|
||||
JS_RE='^ui/'
|
||||
I18N_RE='(^resources/i18n/|^ui/src/i18n/en\.json$|^\.github/workflows/validate-translations\.sh$)'
|
||||
DOC_ONLY_RE='(\.md$|^LICENSE$|^\.git-blame-ignore-revs$|^\.gitignore$|^\.devcontainer/)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue