Skip to content

build(deps): bump golang.org/x/oauth2 from 0.29.0 to 0.30.0 #607

build(deps): bump golang.org/x/oauth2 from 0.29.0 to 0.30.0

build(deps): bump golang.org/x/oauth2 from 0.29.0 to 0.30.0 #607

# 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@f111f3307d8850f501ac008e886eec1fd1932a34 # 5.3.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