From 715f320be1984167fccadc23b4a8bf87fa0d2497 Mon Sep 17 00:00:00 2001 From: Roberto Dip Date: Mon, 29 Aug 2022 15:38:30 -0300 Subject: [PATCH] reduce scope in which packaging and preview actions are run (#7429) --- .github/workflows/fleetctl-preview-latest.yml | 16 ++++++++++++---- .../workflows/test-native-tooling-packaging.yml | 7 ++++++- .github/workflows/test-packaging.yml | 10 +++++++++- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/fleetctl-preview-latest.yml b/.github/workflows/fleetctl-preview-latest.yml index 845f591a4b..2682b4fb81 100644 --- a/.github/workflows/fleetctl-preview-latest.yml +++ b/.github/workflows/fleetctl-preview-latest.yml @@ -9,13 +9,21 @@ on: - main - patch-* paths: - # TODO: Reduce to cmd/fleetctl/**.go and packages used by it. - - '**.go' + - 'cmd/fleetctl/**.go' + - 'pkg/**.go' + - 'server/service/**.go' + - 'server/context/**.go' + - 'orbit/**.go' + - 'ee/fleetctl/**.go' - 'docs/01-Using-Fleet/standard-query-library/standard-query-library.yml' pull_request: paths: - # TODO: Reduce to cmd/fleetctl/**.go and packages used by it. - - '**.go' + - 'cmd/fleetctl/**.go' + - 'pkg/**.go' + - 'server/service/**.go' + - 'server/context/**.go' + - 'orbit/**.go' + - 'ee/fleetctl/**.go' - 'docs/01-Using-Fleet/standard-query-library/standard-query-library.yml' workflow_dispatch: # Manual diff --git a/.github/workflows/test-native-tooling-packaging.yml b/.github/workflows/test-native-tooling-packaging.yml index 2d5700f6cf..b5adc1f420 100644 --- a/.github/workflows/test-native-tooling-packaging.yml +++ b/.github/workflows/test-native-tooling-packaging.yml @@ -10,7 +10,12 @@ on: - patch-* pull_request: paths: - - '**.go' + - 'cmd/fleetctl/**.go' + - 'pkg/**.go' + - 'server/service/**.go' + - 'server/context/**.go' + - 'orbit/**.go' + - 'ee/fleetctl/**.go' - 'tools/fleetctl-docker/**' - 'tools/wix-docker/**' - 'tools/bomutils-docker/**' diff --git a/.github/workflows/test-packaging.yml b/.github/workflows/test-packaging.yml index d9f7954e09..d06bef8d18 100644 --- a/.github/workflows/test-packaging.yml +++ b/.github/workflows/test-packaging.yml @@ -12,7 +12,15 @@ on: - patch-* pull_request: paths: - - '**.go' + - 'cmd/fleetctl/**.go' + - 'pkg/**.go' + - 'server/service/**.go' + - 'server/context/**.go' + - 'orbit/**.go' + - 'ee/fleetctl/**.go' + - 'tools/fleetctl-docker/**' + - 'tools/wix-docker/**' + - 'tools/bomutils-docker/**' - '.github/workflows/test-packaging.yml' workflow_dispatch: # Manual