chore: Update module github.com/go-ping/ping to v1.2.0 #468
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
name: validate pull request | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
validate: | |
name: validate | |
strategy: | |
matrix: | |
runner: [ ubuntu-latest, github-hosted-ubuntu-arm64 ] | |
runs-on: ${{ matrix.runner }} | |
container: | |
image: ghcr.io/grafana/grafana-build-tools:v0.31.1@sha256:576971e115fdb8def851e8d4141388262e2c9d6c23e6c00c5d584d8c06943bcf | |
steps: | |
- name: checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Set up global git config | |
run: | | |
# The directory where the code has been checked out ends up belonging | |
# to a different user, so git complains about permissions. Indicate | |
# that it's safe to ignore. | |
git config --global --add safe.directory '*' | |
- name: Restore Go cache | |
id: restore-go-cache | |
uses: ./.github/actions/go-cache-restore | |
- name: build info | |
id: build-info | |
run: | | |
echo "os=$(go env GOOS)" >> "$GITHUB_OUTPUT" | |
echo "arch=$(go env GOARCH)" >> "$GITHUB_OUTPUT" | |
- name: ensure dependencies are up-to-date | |
run: | | |
make deps | |
scripts/enforce-clean | |
- name: version | |
id: version | |
run: | | |
make version | |
echo "value=$(cat dist/version)" >> "$GITHUB_OUTPUT" | |
- name: build | |
run: make build-native | |
- name: lint | |
run: make lint | |
- name: test | |
run: make test | |
- name: build packages | |
run: make package-native | |
- name: test docker build (no browser) | |
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@7d18a46aafb8b875ed76a0bc98852d74b91e7f91 # v1.0.0 | |
with: | |
push: false | |
platforms: |- | |
${{ steps.build-info.outputs.os }}/${{ steps.build-info.outputs.arch }} | |
tags: |- | |
type=raw,value=${{ steps.version.outputs.value }} | |
type=sha,prefix=sha-,format=short | |
latest | |
target: release | |
- name: test docker build (browser) | |
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@7d18a46aafb8b875ed76a0bc98852d74b91e7f91 # v1.0.0 | |
with: | |
push: false | |
platforms: |- | |
${{ steps.build-info.outputs.os }}/${{ steps.build-info.outputs.arch }} | |
tags: |- | |
type=raw,value=${{ steps.version.outputs.value }}-browser | |
type=sha,prefix=sha-,suffix=-browser,format=short | |
latest-browser | |
target: with-browser |