Skip to content

Commit

Permalink
Remove push workflow for jobs that already run on PR and merge (#23843
Browse files Browse the repository at this point in the history
)

In an attempt to reduce our Actions usage this PR removes the workflow execution for `push` actions on several jobs.

The following files were left as an exception to make sure flakey tests are discovered:
* integration-tests-non-root.yaml
* integration-tests-root.yaml
* unit-tests-code.yaml
* unit-tests-integrations.yaml
  • Loading branch information
jentfoo authored Mar 30, 2023
1 parent 46ff29f commit be70217
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 46 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Build on Mac OS
run-name: Build on Mac OS

on:
push:
branches:
- master
pull_request:
paths:
- '**.go'
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Build on Windows
run-name: Build on Windows

on:
push:
branches:
- master
pull_request:
# We only build tsh on Windows so only consider Go code as tsh doesn't
# run any Rust.
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/doc-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Lint (Docs)
run-name: Lint (Docs)
on:
push:
branches:
- master
pull_request:
paths:
- 'docs/**'
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/lint-bypass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
name: Lint (Go)
run-name: make lint
on:
push:
branches:
- master
pull_request:
paths:
- 'docs/**'
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/lint-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Lint UI
run-name: Lint UI - ${{ github.run_id }} - @${{ github.actor }}

on:
push:
branches:
- master
pull_request:
paths:
- 'web/**'
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Lint (Go)
run-name: make lint
on:
push:
branches:
- master
pull_request:
paths-ignore:
- 'docs/**'
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/os-compatibility-test-bypass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
name: OS Compatibility Test
run-name: OS Compatibility Test
on:
push:
branches:
- master
pull_request:
paths:
- 'docs/**'
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/os-compatibility-test.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: OS Compatibility Test
run-name: OS Compatibility Test
on:
push:
branches:
- master
- branch/*
pull_request:
paths-ignore:
- 'docs/**'
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/terraform-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
name: Lint (Terraform)

on:
push:
branches:
- master
- branch/*
paths:
- '**.tf'
- '**.tf.json'
- '**.hcl'
pull_request:
paths:
- '**.tf'
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Trivy

on:
push:
branches:
- master
- branch/*
pull_request:
merge_group:

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/unit-tests-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Unit Tests (Helm)
run-name: Unit Tests (Helm) - ${{ github.run_id }} - @${{ github.actor }}

on:
push:
branches:
- master
pull_request:
paths:
- 'examples/chart/**'
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/unit-tests-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Unit Tests (Rust)
run-name: Unit Tests (Rust) - ${{ github.run_id }} - @${{ github.actor }}

on:
push:
branches:
- master
pull_request:
paths:
- '**.rs'
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/unit-tests-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Unit Tests UI
run-name: Unit Tests UI - ${{ github.run_id }} - @${{ github.actor }}

on:
push:
branches:
- master
pull_request:
paths:
- 'web/**'
Expand Down

0 comments on commit be70217

Please sign in to comment.