Skip to content

deps(deps): bump google.golang.org/grpc from 1.83.1 to 1.83.2 #478

deps(deps): bump google.golang.org/grpc from 1.83.1 to 1.83.2

deps(deps): bump google.golang.org/grpc from 1.83.1 to 1.83.2 #478

Workflow file for this run

name: Go
on:
pull_request:
branches: [main]
paths-ignore:
- "**.md"
- "docs/**"
- "LICENSE"
permissions: # Explicitly define minimum required permissions
contents: read
pull-requests: write
jobs:
verify:
name: Verify and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: "1.25"
cache: true
- name: Run go vet
run: go vet ./...
- name: Run tests with coverage
run: |
go test -v -race -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
- name: Upload coverage report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always() # Upload coverage even if tests fail
with:
name: coverage-report
path: coverage.html
retention-days: 7
if-no-files-found: error
integration-test:
name: Integration Tests
runs-on: ubuntu-latest
needs: verify
if: |
github.actor == 'dependabot[bot]' ||
contains(github.event.pull_request.body, 'run-integ-test')
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: "1.25"
cache: true
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3
with:
install-only: true
version: "~> v2"
- name: Set up test environment
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
- name: Run integration tests
run: make test-integration-all
timeout-minutes: 20
notify-failure:
name: Notify on Failure
needs: [verify, integration-test]
runs-on: ubuntu-latest
if: failure()
steps:
- name: Determine test scope
id: test-scope
run: |
if [[ "${{ contains(github.event.pull_request.labels.*.name, 'integration-test') || github.actor == 'dependabot[bot]' }}" == "true" ]]; then
echo "scope=verification, unit tests, and integration tests" >> $GITHUB_OUTPUT
else
echo "scope=verification and unit tests" >> $GITHUB_OUTPUT
fi
- name: Create failure comment
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const { owner, repo, number } = context.issue;
await github.rest.issues.createComment({
owner,
repo,
issue_number: number,
body: `❌ The following checks failed: ${{ steps.test-scope.outputs.scope }}. Please check the workflow logs for details.`
});