build(deps): bump github.com/grpc-ecosystem/go-grpc-middleware/v2 from 2.1.0 to 2.2.0 #485
Workflow file for this run
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
# 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 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: './grafana-plugin-sdk-go' | |
- uses: actions/checkout@v4 | |
with: | |
repository: 'grafana/grafana' | |
path: './grafana' | |
- uses: actions/setup-go@v5 | |
with: | |
cache: false | |
go-version: '~1.22' | |
check-latest: true | |
- name: Check if branch exists in Grafana | |
working-directory: './grafana' | |
run: | | |
if git ls-remote --heads --quiet --exit-code origin ${{ github.head_ref }} | |
then | |
echo "Found branch ${{ github.head_ref }} in Grafana" | |
git fetch origin ${{ github.head_ref }} | |
git checkout ${{ github.head_ref }} | |
else | |
echo "Branch ${{ github.head_ref }} 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: Automatic updates | |
working-directory: './grafana' | |
run: go mod tidy | |
- name: Build Grafana | |
working-directory: './grafana' | |
run: make build-go |