build(deps): bump github.com/hashicorp/packer-plugin-sdk from 0.5.3 to 0.5.4 #3410
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This GitHub action runs Packer go tests across | |
# Windows, Linux, and MacOS runners. | |
# | |
name: "Go Test" | |
on: | |
push: | |
branches: | |
- 'main' | |
- release/** | |
pull_request: | |
env: | |
PACKER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
contents: read | |
jobs: | |
get-go-version: | |
runs-on: ubuntu-latest | |
outputs: | |
go-version: ${{ steps.get-go-version.outputs.go-version }} | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: 'Determine Go version' | |
id: get-go-version | |
run: | | |
echo "Found Go $(cat .go-version)" | |
echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT | |
linux-go-tests: | |
needs: | |
- get-go-version | |
runs-on: ubuntu-latest | |
name: Linux go tests | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ needs.get-go-version.outputs.go-version }} | |
- run: TESTARGS="-coverprofile=coverage.txt -covermode=atomic" make ci | |
darwin-go-tests: | |
needs: | |
- get-go-version | |
runs-on: macos-latest | |
name: Darwin go tests | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ needs.get-go-version.outputs.go-version }} | |
- run: go test ./... -coverprofile=coverage.txt -covermode=atomic | |
windows-go-tests: | |
needs: | |
- get-go-version | |
runs-on: windows-latest | |
name: Windows go tests | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ needs.get-go-version.outputs.go-version }} | |
- run: go test ./... -coverprofile=coverage.txt -covermode=atomic |