Skip to content

Commit f8fd225

Browse files
authored
Don't test the push event for dependabot branches (#154)
The push event is already tested by the PR checks, so we don't need to test it again. Fixes #153.
2 parents a236782 + 3fe7445 commit f8fd225

File tree

8 files changed

+9
-0
lines changed
  • .github/workflows
  • cookiecutter/{{cookiecutter.github_repo_name}}/.github/workflows
  • tests_golden/integration/test_cookiecutter_generation
    • actor/frequenz-actor-test/.github/workflows
    • api/frequenz-api-test/.github/workflows
    • app/frequenz-app-test/.github/workflows
    • lib/frequenz-test-python/.github/workflows
    • model/frequenz-model-test/.github/workflows

8 files changed

+9
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
# We only want to test the merge commit (`merge_group` event), the hashes
1414
# in the push were already tested by the PR checks
1515
- 'gh-readonly-queue/**'
16+
- 'dependabot/**'
1617
workflow_dispatch:
1718

1819
env:

RELEASE_NOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@
5858
- Fixed mermaid diagrams not rendering in the documentation.
5959
- `mypy` ignores for `cookiecutter` have been removed. They should have never be there as generated projects don't use `cookiecutter`.
6060
- `mypy` overrides now are applied to API projects too.
61+
62+
- Dependabot branches are now not tested for `push` events, as they are already tested by `pull` events.

cookiecutter/{{cookiecutter.github_repo_name}}/.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
# We only want to test the merge commit (`merge_group` event), the hashes
1515
# in the push were already tested by the PR checks
1616
- 'gh-readonly-queue/**'
17+
- 'dependabot/**'
1718
workflow_dispatch:
1819

1920
env:

tests_golden/integration/test_cookiecutter_generation/actor/frequenz-actor-test/.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
# We only want to test the merge commit (`merge_group` event), the hashes
1414
# in the push were already tested by the PR checks
1515
- 'gh-readonly-queue/**'
16+
- 'dependabot/**'
1617
workflow_dispatch:
1718

1819
env:

tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test/.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
# We only want to test the merge commit (`merge_group` event), the hashes
1414
# in the push were already tested by the PR checks
1515
- 'gh-readonly-queue/**'
16+
- 'dependabot/**'
1617
workflow_dispatch:
1718

1819
env:

tests_golden/integration/test_cookiecutter_generation/app/frequenz-app-test/.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
# We only want to test the merge commit (`merge_group` event), the hashes
1414
# in the push were already tested by the PR checks
1515
- 'gh-readonly-queue/**'
16+
- 'dependabot/**'
1617
workflow_dispatch:
1718

1819
env:

tests_golden/integration/test_cookiecutter_generation/lib/frequenz-test-python/.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
# We only want to test the merge commit (`merge_group` event), the hashes
1414
# in the push were already tested by the PR checks
1515
- 'gh-readonly-queue/**'
16+
- 'dependabot/**'
1617
workflow_dispatch:
1718

1819
env:

tests_golden/integration/test_cookiecutter_generation/model/frequenz-model-test/.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
# We only want to test the merge commit (`merge_group` event), the hashes
1414
# in the push were already tested by the PR checks
1515
- 'gh-readonly-queue/**'
16+
- 'dependabot/**'
1617
workflow_dispatch:
1718

1819
env:

0 commit comments

Comments
 (0)