From 262f9095efce99baed6b91cde4021b016a3ea83e Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Wed, 19 Jul 2023 07:53:52 +0200 Subject: 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. --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.gitlab-ci.yml') 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 -- cgit v1.2.3