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.
This commit is contained in:
parent
08303d91e6
commit
db24646e70
2 changed files with 7 additions and 1 deletions
6
.github/workflows/go.yml
vendored
6
.github/workflows/go.yml
vendored
|
|
@ -1,5 +1,9 @@
|
|||
name: Unit and Integration Tests
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- trunk
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
|
|||
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
|
@ -1,6 +1,8 @@
|
|||
name: Lint
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- trunk
|
||||
paths:
|
||||
- "**.go"
|
||||
- go.mod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue