You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by rs...@apache.org on 2023/04/25 15:46:50 UTC
[trafficcontrol] branch master updated: Do not trigger GHAs for changes to irrelevant Go tests (#7464)
This is an automated email from the ASF dual-hosted git repository.
rshah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new c09cbeb702 Do not trigger GHAs for changes to irrelevant Go tests (#7464)
c09cbeb702 is described below
commit c09cbeb7020e2ffb5a0af84458320cf90486b80e
Author: Zach Hoffman <zr...@apache.org>
AuthorDate: Tue Apr 25 09:46:44 2023 -0600
Do not trigger GHAs for changes to irrelevant Go tests (#7464)
---
.github/workflows/cache-config-tests.yml | 4 ++++
.github/workflows/cache-config.unit.tests.yml | 4 ++++
.github/workflows/go.lib.unit.tests.yml | 4 ++++
.github/workflows/grove.unit.tests.yml | 4 ++++
.github/workflows/health-client-tests.yml | 4 ++++
.github/workflows/tm.unit.tests.yml | 4 ++++
.github/workflows/to.unit.tests.yml | 4 ++++
.github/workflows/tp.integration.tests.yml | 2 ++
.github/workflows/tpv2.yml | 2 ++
.github/workflows/traffic-stats.unit.tests.yml | 4 ++++
10 files changed, 36 insertions(+)
diff --git a/.github/workflows/cache-config-tests.yml b/.github/workflows/cache-config-tests.yml
index 9e532ae004..39a33aae58 100644
--- a/.github/workflows/cache-config-tests.yml
+++ b/.github/workflows/cache-config-tests.yml
@@ -37,6 +37,8 @@ on:
- GO_VERSION
- lib/atscfg-go/**.go
- lib/go-atscfg/**.go
+ - '!**_test.go'
+ - 'cache-config/testing/**_test.go'
- 'traffic_ops/app/db/**'
- '!traffic_ops/app/db/**.md'
- traffic_ops/*client/**.go
@@ -59,6 +61,8 @@ on:
- GO_VERSION
- lib/atscfg-go/**.go
- lib/go-atscfg/**.go
+ - '!**_test.go'
+ - 'cache-config/testing/**_test.go'
- 'traffic_ops/app/db/**'
- '!traffic_ops/app/db/**.md'
- traffic_ops/*client/**.go
diff --git a/.github/workflows/cache-config.unit.tests.yml b/.github/workflows/cache-config.unit.tests.yml
index 0aa9a470cd..029033ce62 100644
--- a/.github/workflows/cache-config.unit.tests.yml
+++ b/.github/workflows/cache-config.unit.tests.yml
@@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - 'cache-config/**_test.go'
- vendor/modules.txt
create:
pull_request:
@@ -40,6 +42,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - 'cache-config/**_test.go'
- vendor/modules.txt
types: [opened, reopened, ready_for_review, synchronize]
diff --git a/.github/workflows/go.lib.unit.tests.yml b/.github/workflows/go.lib.unit.tests.yml
index c5c9fcd5c2..df7274eb6b 100644
--- a/.github/workflows/go.lib.unit.tests.yml
+++ b/.github/workflows/go.lib.unit.tests.yml
@@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - 'lib/**_test.go'
- vendor/modules.txt
create:
pull_request:
@@ -40,6 +42,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - 'lib/**_test.go'
- vendor/modules.txt
types: [opened, reopened, ready_for_review, synchronize]
diff --git a/.github/workflows/grove.unit.tests.yml b/.github/workflows/grove.unit.tests.yml
index 5c400069ed..66655b615f 100644
--- a/.github/workflows/grove.unit.tests.yml
+++ b/.github/workflows/grove.unit.tests.yml
@@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - 'grove/**_test.go'
- vendor/modules.txt
create:
pull_request:
@@ -40,6 +42,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - 'grove/**_test.go'
- vendor/modules.txt
types: [opened, reopened, ready_for_review, synchronize]
diff --git a/.github/workflows/health-client-tests.yml b/.github/workflows/health-client-tests.yml
index fb8984e24d..c9f598e4bc 100644
--- a/.github/workflows/health-client-tests.yml
+++ b/.github/workflows/health-client-tests.yml
@@ -37,6 +37,8 @@ on:
- traffic_ops/traffic_ops_golang/**.go
- tc-health-client/**.go
- tc-health-client/testing/**
+ - '!**_test.go'
+ - tc-health-client/**_test.go
- vendor/**.go
- vendor/modules.txt
- .github/actions/build-ats-test-rpm/**
@@ -56,6 +58,8 @@ on:
- traffic_ops/traffic_ops_golang/**.go
- tc-health-client/**.go
- tc-health-client/testing/**
+ - '!**_test.go'
+ - tc-health-client/**_test.go
- vendor/**.go
- vendor/modules.txt
- .github/actions/build-ats-test-rpm/**
diff --git a/.github/workflows/tm.unit.tests.yml b/.github/workflows/tm.unit.tests.yml
index 2156dd8fd0..cbb124d71a 100644
--- a/.github/workflows/tm.unit.tests.yml
+++ b/.github/workflows/tm.unit.tests.yml
@@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - 'traffic_monitor/**_test.go'
- vendor/modules.txt
create:
pull_request:
@@ -40,6 +42,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - 'traffic_monitor/**_test.go'
- vendor/modules.txt
types: [opened, reopened, ready_for_review, synchronize]
diff --git a/.github/workflows/to.unit.tests.yml b/.github/workflows/to.unit.tests.yml
index e584b47e1a..5a71024a9b 100644
--- a/.github/workflows/to.unit.tests.yml
+++ b/.github/workflows/to.unit.tests.yml
@@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - 'traffic_ops/traffic_ops_golang/**_test.go'
- vendor/modules.txt
create:
pull_request:
@@ -40,6 +42,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - 'traffic_ops/traffic_ops_golang/**_test.go'
- vendor/modules.txt
types: [opened, reopened, ready_for_review, synchronize]
diff --git a/.github/workflows/tp.integration.tests.yml b/.github/workflows/tp.integration.tests.yml
index 9b11ac505b..f234c7f0a3 100644
--- a/.github/workflows/tp.integration.tests.yml
+++ b/.github/workflows/tp.integration.tests.yml
@@ -30,6 +30,7 @@ on:
- .github/actions/tp-integration-tests/**
- .github/workflows/tp.integration.tests.yml
- GO_VERSION
+ - '!**_test.go'
- infrastructure/cdn-in-a-box/optional/traffic_vault/**
- lib/go-tc/**
- traffic_ops/app/db/**
@@ -43,6 +44,7 @@ on:
- .github/actions/tp-integration-tests/**
- .github/workflows/tp.integration.tests.yml
- GO_VERSION
+ - '!**_test.go'
- infrastructure/cdn-in-a-box/optional/traffic_vault/**
- lib/go-tc/**
- traffic_ops/app/db/**
diff --git a/.github/workflows/tpv2.yml b/.github/workflows/tpv2.yml
index 444fc6ebdc..57c156abfe 100644
--- a/.github/workflows/tpv2.yml
+++ b/.github/workflows/tpv2.yml
@@ -27,6 +27,7 @@ on:
- .github/workflows/tpv2.yml
- .github/actions/tpv2-integration-tests
- lib/go-tc/**
+ - '!**_test.go'
- traffic_ops/app/db/**
- traffic_ops/traffic_ops_golang/**.go
create:
@@ -35,6 +36,7 @@ on:
- experimental/traffic-portal/**
- .github/workflows/tpv2.yml
- .github/actions/tpv2-integration-tests
+ - '!**_test.go'
- lib/go-tc/**
- traffic_ops/app/db/**
- traffic_ops/traffic_ops_golang/**.go
diff --git a/.github/workflows/traffic-stats.unit.tests.yml b/.github/workflows/traffic-stats.unit.tests.yml
index b844a16aa2..24a67564fc 100644
--- a/.github/workflows/traffic-stats.unit.tests.yml
+++ b/.github/workflows/traffic-stats.unit.tests.yml
@@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - traffic_stats/**_test.go
- vendor/modules.txt
create:
pull_request:
@@ -40,6 +42,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
+ - '!**_test.go'
+ - traffic_stats/**_test.go
- vendor/modules.txt
types: [opened, reopened, ready_for_review, synchronize]