Skip to content

Bump golangci/golangci-lint-action from 8.0.0 to 9.0.0 #16

Bump golangci/golangci-lint-action from 8.0.0 to 9.0.0

Bump golangci/golangci-lint-action from 8.0.0 to 9.0.0 #16

Workflow file for this run

name: CI
on:
pull_request:
branches:
- v*
- develop/*
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.24', '1.23' ]
name: "Test [ Go ${{ matrix.go }} ]"
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Cache Go modules
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
~/.cache/bazel
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Go stable version
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Install tparse
run: go install github.com/mfridman/tparse@v0.12.2
- name: Run go generate
run: go generate ./...
- name: Go mod tidy
run: go mod tidy
- name: Test with coverage
run: go test -cover ./...
- uses: bazelbuild/setup-bazelisk@b39c379c82683a5f25d34f0d062761f62693e0b2 # v3.0.0
- name: Update MODULE.bazel dependencies
run: bazel mod tidy
- name: Check for uncommitted changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Uncommitted changes found:"
git status --porcelain
git diff
exit 1
fi