github.com/gophercloud/gophercloud@v1.11.0/.github/workflows/gomod.yml (about)

     1  on: [push, pull_request]
     2  name: go mod
     3  permissions:
     4    contents: read
     5  
     6  jobs:
     7    test:
     8      runs-on: ubuntu-latest
     9      steps:
    10        - uses: actions/checkout@v3
    11        - uses: actions/setup-go@v4
    12          with:
    13            go-version: '1'
    14        - run: if [ $(go mod tidy && git diff | wc -l) -gt 0 ]; then git diff && exit 1; fi