Update Go checks to run on pull_requests (#12166)

Currently go-test and go-validate only run for users who have push
access to the Packer repo. We want to ensure tests and validation run
for all opened pull requests including public forks.
pull/12246/head
Wilken Rivera 3 years ago committed by Wilken Rivera
parent 0291e47698
commit e6319f0ad0

@ -5,7 +5,11 @@
name: "Go Test"
on: [ workflow_dispatch, push ]
on:
push:
branches:
- 'main'
pull_request:
env:
PACKER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

@ -4,7 +4,11 @@
name: "Go Validate"
on: [ workflow_dispatch, push ]
on:
push:
branches:
- 'main'
pull_request:
permissions:
contents: read

Loading…
Cancel
Save