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:
Andy Feller 2025-07-17 15:18:31 -04:00
parent 08303d91e6
commit db24646e70
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,9 @@
name: Unit and Integration Tests
on: [push, pull_request]
on:
push:
branches:
- trunk
pull_request:
permissions:
contents: read

View file

@ -1,6 +1,8 @@
name: Lint
on:
push:
branches:
- trunk
paths:
- "**.go"
- go.mod