Skip to content

fix(azure): add CheckSubnetContainsIPWithClient and fill test coverag… #21

fix(azure): add CheckSubnetContainsIPWithClient and fill test coverag…

fix(azure): add CheckSubnetContainsIPWithClient and fill test coverag… #21

name: Go Mod Tidy Check
on:
push:
permissions:
contents: read
jobs:
go-mod-tidy-check:
name: Check go.mod and go.sum are tidy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up mise
uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run go mod tidy
run: go mod tidy
- name: Check for changes
run: |
if ! git diff --exit-code go.mod go.sum; then
echo "::error::go.mod or go.sum are not tidy. Please run 'go mod tidy' locally and commit the changes."
exit 1
fi
echo "go.mod and go.sum are tidy"