build(deps): bump golang.org/x/sys from 0.32.0 to 0.33.0 #615
Workflow file for this run
This file contains hidden or 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
# Checks if the current update to go.mod is compatible with Grafana. | |
name: Detect breaking change with Grafana | |
on: | |
pull_request: | |
paths: | |
- "go.mod" | |
- "go.sum" | |
branches: | |
- "main" | |
jobs: | |
buildPR: | |
name: Build PR | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
path: "./grafana-plugin-sdk-go" | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
repository: "grafana/grafana" | |
path: "./grafana" | |
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # 5.5.0 | |
with: | |
cache: false | |
go-version: "~1.22" | |
check-latest: true | |
- name: Check if branch exists in Grafana | |
working-directory: "./grafana" | |
env: | |
BRANCH: ${{ github.head_ref }} | |
run: | | |
if git ls-remote --heads --quiet --exit-code origin "$BRANCH"; then | |
echo "Found branch $BRANCH in Grafana" | |
git fetch origin "$BRANCH" && git checkout "$BRANCH" | |
else | |
echo "Branch $BRANCH not found in Grafana" | |
fi | |
- name: Link sdk | |
working-directory: "./grafana" | |
run: go mod edit -replace github.com/grafana/grafana-plugin-sdk-go=../grafana-plugin-sdk-go | |
- name: Build Grafana | |
working-directory: "./grafana" | |
run: make build-go |