Skip to content

Commit db24646

Browse files
committed
Run Lint and Tests on push to trunk branch
This change causes the "Lint" and "Unit and Integration Tests" workflows to only run on `push` events on the default branch (`trunk`). This should avoid running redundant set of jobs on pull requests.
1 parent 08303d9 commit db24646

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/go.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Unit and Integration Tests
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches:
5+
- trunk
6+
pull_request:
37

48
permissions:
59
contents: read

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Lint
22
on:
33
push:
4+
branches:
5+
- trunk
46
paths:
57
- "**.go"
68
- go.mod

0 commit comments

Comments
 (0)