Skip to content

Merge pull request #133 from etcd-io/dependabot/go_modules/google.gol… #24

Merge pull request #133 from etcd-io/dependabot/go_modules/google.gol…

Merge pull request #133 from etcd-io/dependabot/go_modules/google.gol… #24

---
name: Static analysis
on: [push, pull_request]
permissions: read-all
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: v1.60.1
args: --config tools/.golangci.yaml
- run: |
set -euo pipefail
make verify
- run: |
set -euo pipefail
make fmt
DIFF=$(git status --porcelain)
if [ -n "$DIFF" ]; then
echo "These files were modified:"
echo
echo "$DIFF"
echo
exit 1
fi