diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-07-19 08:53:52 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-07-21 07:38:33 +0300 |
commit | 262f9095efce99baed6b91cde4021b016a3ea83e (patch) | |
tree | 409bc20dee4e45b0319694fa8089382f8edd22ee /.gitlab-ci.yml | |
parent | 6cb9382aa4b4a8a6260dc5509541e27f4ff39a1f (diff) |
ci: Fix missing files in code change patterns
Our list of files that relate to code changes is missing some items:
- `go.mod` and `go.sum` files in our `tools/` directory. This rule
is important because changes in our tooling may have a ripple
effect.
- `*.go` files in our root directory, like the `packed_binaries.go`
file.
Change all of the recursive patterns as well as the `go.*` pattern to
match both in the root directory as well as in recursive directories so
that this becomes less fragile.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 719241b52..781339eeb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -140,12 +140,12 @@ workflow: .only_code_changes: &only_code_changes changes: - - "**/*.go" - - "**/*.proto" - - "**/*.sql" + - "**.go" + - "**.proto" + - "**.sql" + - "{,**/}go.{mod,sum}" - Makefile - .gitlab-ci.yml - - "go.*" .rules_run_always: &rules_run_always - if: $CI_MERGE_REQUEST_IID |