mirror of
https://github.com/hashicorp/packer.git
synced 2026-07-11 18:15:51 -04:00
Bumps the actions group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.2.2` | `4.3.1` | | [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) | `4.0.2` | `4.3.1` | | [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) | `1.27.0` | `1.27.1` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.6.0` | `4.6.2` | | [actions/github-script](https://github.com/actions/github-script) | `7.0.1` | `7.1.0` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4.1.8` | `4.3.0` | | [ncipollo/release-action](https://github.com/ncipollo/release-action) | `1.15.0` | `1.21.0` | Updates `actions/checkout` from 4.2.2 to 4.3.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](11bd71901b...34e114876b) Updates `aws-actions/configure-aws-credentials` from 4.0.2 to 4.3.1 - [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases) - [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md) - [Commits](e3dd6a429d...7474bc4690) Updates `slackapi/slack-github-action` from 1.27.0 to 1.27.1 - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Changelog](https://github.com/slackapi/slack-github-action/blob/main/CHANGELOG.md) - [Commits](37ebaef184...fcfb566f8b) Updates `actions/upload-artifact` from 4.6.0 to 4.6.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](65c4c4a1dd...ea165f8d65) Updates `actions/github-script` from 7.0.1 to 7.1.0 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](60a0d83039...f28e40c7f3) Updates `actions/download-artifact` from 4.1.8 to 4.3.0 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](fa0a91b85d...d3f86a106a) Updates `ncipollo/release-action` from 1.15.0 to 1.21.0 - [Release notes](https://github.com/ncipollo/release-action/releases) - [Commits](cdcc88a9ac...339a81892b) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 4.3.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: aws-actions/configure-aws-credentials dependency-version: 4.3.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: slackapi/slack-github-action dependency-version: 1.27.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/upload-artifact dependency-version: 4.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/github-script dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: actions/download-artifact dependency-version: 4.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: ncipollo/release-action dependency-version: 1.21.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
66 lines
2 KiB
YAML
66 lines
2 KiB
YAML
#
|
|
# This GitHub action runs Packer go tests across
|
|
# Windows, Linux, and MacOS runners.
|
|
#
|
|
|
|
name: "Go Test"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- release/**
|
|
- feature/**
|
|
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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
- 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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version: ${{ needs.get-go-version.outputs.go-version }}
|
|
- run: go test ./... -coverprofile=coverage.txt -covermode=atomic
|