Skip to content

Commit

Permalink
Do not trigger GHAs for changes to irrelevant Go tests (#7464)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrhoffman authored Apr 25, 2023
1 parent 7e6e663 commit c09cbeb
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cache-config-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cache-config.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
- '!**_test.go'
- 'cache-config/**_test.go'
- vendor/modules.txt
create:
pull_request:
Expand All @@ -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]

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/go.lib.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
- '!**_test.go'
- 'lib/**_test.go'
- vendor/modules.txt
create:
pull_request:
Expand All @@ -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]

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/grove.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
- '!**_test.go'
- 'grove/**_test.go'
- vendor/modules.txt
create:
pull_request:
Expand All @@ -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]

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/health-client-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
Expand All @@ -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/**
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tm.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
- '!**_test.go'
- 'traffic_monitor/**_test.go'
- vendor/modules.txt
create:
pull_request:
Expand All @@ -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]

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/to.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tp.integration.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
Expand All @@ -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/**
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tpv2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/traffic-stats.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ on:
- go.sum
- GO_VERSION
- '**.go'
- '!**_test.go'
- traffic_stats/**_test.go
- vendor/modules.txt
create:
pull_request:
Expand All @@ -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]

Expand Down

0 comments on commit c09cbeb

Please sign in to comment.