From 1b387aba2c38541f764513ffd9b11e67bc19345e Mon Sep 17 00:00:00 2001 From: Roman Tkachenko Date: Thu, 22 Dec 2022 11:04:44 -0800 Subject: [PATCH] Run GHA tests when build.assets/Makefile changes (#19616) --- .github/workflows/build-macos-bypass.yaml | 1 + .github/workflows/build-macos.yaml | 1 + .github/workflows/build-windows-bypass.yaml | 1 + .github/workflows/build-windows.yaml | 1 + .../workflows/integration-tests-non-root-bypass.yaml | 1 + .github/workflows/integration-tests-non-root.yaml | 1 + .github/workflows/integration-tests-root-bypass.yaml | 1 + .github/workflows/integration-tests-root.yaml | 1 + .github/workflows/unit-tests-code-bypass.yaml | 3 +++ .github/workflows/unit-tests-code.yaml | 1 + .github/workflows/unit-tests-operator-bypass.yaml | 11 ++++++----- .github/workflows/unit-tests-operator.yaml | 11 ++++++----- .github/workflows/unit-tests-rust-bypass.yaml | 1 + .github/workflows/unit-tests-rust.yaml | 1 + build.assets/Makefile | 2 +- 15 files changed, 27 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-macos-bypass.yaml b/.github/workflows/build-macos-bypass.yaml index 4fe67a8f3cfbe..151a5cbe8be6f 100644 --- a/.github/workflows/build-macos-bypass.yaml +++ b/.github/workflows/build-macos-bypass.yaml @@ -20,6 +20,7 @@ on: - '**.rs' - 'Cargo.toml' - 'Cargo.lock' + - 'build.assets/Makefile' jobs: build: diff --git a/.github/workflows/build-macos.yaml b/.github/workflows/build-macos.yaml index 26d9a39bd7ff5..c00c7be30b4ed 100644 --- a/.github/workflows/build-macos.yaml +++ b/.github/workflows/build-macos.yaml @@ -13,6 +13,7 @@ on: - '**.rs' - 'Cargo.toml' - 'Cargo.lock' + - 'build.assets/Makefile' jobs: build: diff --git a/.github/workflows/build-windows-bypass.yaml b/.github/workflows/build-windows-bypass.yaml index 4274d3f480ba1..c4e66b56e451c 100644 --- a/.github/workflows/build-windows-bypass.yaml +++ b/.github/workflows/build-windows-bypass.yaml @@ -19,6 +19,7 @@ on: - '**.go' - 'go.mod' - 'go.sum' + - 'build.assets/Makefile' jobs: build: diff --git a/.github/workflows/build-windows.yaml b/.github/workflows/build-windows.yaml index 4d6ed2c5da232..f2234bea30d53 100644 --- a/.github/workflows/build-windows.yaml +++ b/.github/workflows/build-windows.yaml @@ -12,6 +12,7 @@ on: - '**.go' - 'go.mod' - 'go.sum' + - 'build.assets/Makefile' jobs: build: diff --git a/.github/workflows/integration-tests-non-root-bypass.yaml b/.github/workflows/integration-tests-non-root-bypass.yaml index ca5485fca2dfb..1018897c42c41 100644 --- a/.github/workflows/integration-tests-non-root-bypass.yaml +++ b/.github/workflows/integration-tests-non-root-bypass.yaml @@ -17,6 +17,7 @@ on: - '**.go' - 'go.mod' - 'go.sum' + - 'build.assets/Makefile' jobs: test: diff --git a/.github/workflows/integration-tests-non-root.yaml b/.github/workflows/integration-tests-non-root.yaml index 849daaf45e58d..d5d81e093b660 100644 --- a/.github/workflows/integration-tests-non-root.yaml +++ b/.github/workflows/integration-tests-non-root.yaml @@ -10,6 +10,7 @@ on: - '**.go' - 'go.mod' - 'go.sum' + - 'build.assets/Makefile' jobs: test: diff --git a/.github/workflows/integration-tests-root-bypass.yaml b/.github/workflows/integration-tests-root-bypass.yaml index 9a19587093678..30d7d9c906a01 100644 --- a/.github/workflows/integration-tests-root-bypass.yaml +++ b/.github/workflows/integration-tests-root-bypass.yaml @@ -17,6 +17,7 @@ on: - '**.go' - 'go.mod' - 'go.sum' + - 'build.assets/Makefile' jobs: test: diff --git a/.github/workflows/integration-tests-root.yaml b/.github/workflows/integration-tests-root.yaml index 33a5961789110..4ad692017036c 100644 --- a/.github/workflows/integration-tests-root.yaml +++ b/.github/workflows/integration-tests-root.yaml @@ -10,6 +10,7 @@ on: - '**.go' - 'go.mod' - 'go.sum' + - 'build.assets/Makefile' jobs: test: diff --git a/.github/workflows/unit-tests-code-bypass.yaml b/.github/workflows/unit-tests-code-bypass.yaml index 42f7ee3756e37..fe21622a77f1e 100644 --- a/.github/workflows/unit-tests-code-bypass.yaml +++ b/.github/workflows/unit-tests-code-bypass.yaml @@ -15,6 +15,9 @@ on: pull_request: paths-ignore: - '**.go' + - 'go.mod' + - 'go.sum' + - 'build.assets/Makefile' jobs: test: diff --git a/.github/workflows/unit-tests-code.yaml b/.github/workflows/unit-tests-code.yaml index e33900021ec1e..332b22f42f50c 100644 --- a/.github/workflows/unit-tests-code.yaml +++ b/.github/workflows/unit-tests-code.yaml @@ -10,6 +10,7 @@ on: - '**.go' - 'go.mod' - 'go.sum' + - 'build.assets/Makefile' jobs: test: diff --git a/.github/workflows/unit-tests-operator-bypass.yaml b/.github/workflows/unit-tests-operator-bypass.yaml index 037c001eae503..30af8138124cb 100644 --- a/.github/workflows/unit-tests-operator-bypass.yaml +++ b/.github/workflows/unit-tests-operator-bypass.yaml @@ -14,11 +14,12 @@ run-name: Skip Unit Tests (Operator) - ${{ github.run_id }} - @${{ github.actor on: pull_request: paths-ignore: - - /go.mod - - /go.sum - - operator/** - - api/types/** - - lib/tbot/** + - '/go.mod' + - '/go.sum' + - 'operator/**' + - 'api/types/**' + - 'lib/tbot/**' + - 'build.assets/Makefile' jobs: test: diff --git a/.github/workflows/unit-tests-operator.yaml b/.github/workflows/unit-tests-operator.yaml index 2aee5247e647d..2672d274a3e84 100644 --- a/.github/workflows/unit-tests-operator.yaml +++ b/.github/workflows/unit-tests-operator.yaml @@ -7,11 +7,12 @@ on: - master pull_request: paths: - - /go.mod - - /go.sum - - operator/** - - api/types/** - - lib/tbot/** + - '/go.mod' + - '/go.sum' + - 'operator/**' + - 'api/types/**' + - 'lib/tbot/** + - 'build.assets/Makefile' jobs: test: diff --git a/.github/workflows/unit-tests-rust-bypass.yaml b/.github/workflows/unit-tests-rust-bypass.yaml index 443069a1918c9..780e17a3bbf70 100644 --- a/.github/workflows/unit-tests-rust-bypass.yaml +++ b/.github/workflows/unit-tests-rust-bypass.yaml @@ -17,6 +17,7 @@ on: - '**.rs' - 'Cargo.toml' - 'Cargo.lock' + - 'build.assets/Makefile' jobs: test: diff --git a/.github/workflows/unit-tests-rust.yaml b/.github/workflows/unit-tests-rust.yaml index 3e695da4369fa..448b900155c13 100644 --- a/.github/workflows/unit-tests-rust.yaml +++ b/.github/workflows/unit-tests-rust.yaml @@ -10,6 +10,7 @@ on: - '**.rs' - 'Cargo.toml' - 'Cargo.lock' + - 'build.assets/Makefile' jobs: test: diff --git a/build.assets/Makefile b/build.assets/Makefile index 51cf9e06e5a2d..25a1039724a85 100644 --- a/build.assets/Makefile +++ b/build.assets/Makefile @@ -42,7 +42,7 @@ RUNTIME_ARCH_aarch64 := arm64 RUNTIME_ARCH := $(RUNTIME_ARCH_$(HOST_ARCH)) PROTOC_VER ?= 3.20.3 -# Keep in sync with api/proto/buf.yaml (and buf.lock). +# Keep in sync with api/proto/buf.yaml (and buf.lock) GOGO_PROTO_TAG ?= v1.3.2 # BUILDBOX_VERSION, BUILDBOX and BUILDBOX_variant variables are included