Skip to content

[release] Update release.json for 7.82.1 (#54622) #3970

[release] Update release.json for 7.82.1 (#54622)

[release] Update release.json for 7.82.1 (#54622) #3970

Workflow file for this run

name: "Gohai Test"
# Only run the tests if pkg/gohai was changed
on:
push:
branches:
- main
- "[0-9]+.[0-9]+.x"
paths:
- ".github/workflows/gohai.yml"
- "pkg/gohai/**"
pull_request:
paths:
- ".github/workflows/gohai.yml"
- "pkg/gohai/**"
permissions: {}
jobs:
gohai_test:
strategy:
matrix:
# Use oldest and latest available ubuntu, macos and windows
# https://github.com/actions/runner-images#available-images
os:
[
ubuntu-22.04,
ubuntu-latest,
macos-14,
macos-latest,
windows-2022,
windows-latest,
]
# Run tests with both the agent's version and gohai's pinned version
go-file: [.go-version, pkg/gohai/go.mod]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: ${{ matrix.go-file }}
- name: Test
# disable go.work to avoid overriding the go version at runtime
env:
GOWORK: off
run: cd pkg/gohai && go test -tags=test ./...