mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 08:42:33 -04:00
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.
This commit is contained in:
parent
a6e7635d05
commit
50a356529a
2 changed files with 10 additions and 2 deletions
6
.github/workflows/go-test.yml
vendored
6
.github/workflows/go-test.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
6
.github/workflows/go-validate.yml
vendored
6
.github/workflows/go-validate.yml
vendored
|
|
@ -4,7 +4,11 @@
|
|||
|
||||
name: "Go Validate"
|
||||
|
||||
on: [ workflow_dispatch, push ]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
|
|||
Loading…
Reference in a new issue