diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 5569eea2..72230226 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -1,4 +1,11 @@ -on: [push] +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go +on: + # Run CI when pushing to main + push: + branches: [ main ] + # Run CI for PRs to main and staging + pull_request: + branches: [ main ] jobs: go-build: runs-on: ubuntu-latest