build(deps): bump sigs.k8s.io/cloud-provider-azure/pkg/azclient/cache from 0.10.0 to 0.10.1 in the all group #183
This file contains hidden or 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
| name: Go Module Consistency | |
| on: | |
| push: | |
| branches: [ master, 'release-**' ] | |
| pull_request: | |
| branches: [ master, 'release-**' ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| go-mod-consistency: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.2.2 | |
| - name: Discover Go modules | |
| id: gomods | |
| uses: ./.github/actions/discover-go-modules | |
| - name: Setup Go | |
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | |
| with: | |
| go-version: ${{ steps.gomods.outputs.version }} | |
| check-latest: true | |
| cache-dependency-path: ${{ steps.gomods.outputs.gosums }} | |
| - name: Run go mod tidy and verify | |
| run: | | |
| set -euo pipefail | |
| mapfile -t modules <<< "${{ steps.gomods.outputs.modules }}" | |
| if [ "${#modules[@]}" -eq 0 ]; then | |
| echo "No modules found from discovery step" >&2 | |
| exit 1 | |
| fi | |
| for m in "${modules[@]}"; do | |
| if [ -z "${m}" ]; then | |
| continue | |
| fi | |
| echo ">> go mod tidy (${m})" | |
| (cd "${m}" && go mod tidy) | |
| echo ">> go mod verify (${m})" | |
| (cd "${m}" && go mod verify) | |
| done | |
| - name: Fail on uncommitted changes | |
| run: | | |
| git diff --stat | |
| git diff --quiet |