cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
.github/workflows/go-mod-tidy.yml
30lines · modecode
| 1 | name: Check go.mod |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | pull_request: |
| 8 | branches: |
| 9 | - main |
| 10 | |
| 11 | jobs: |
| 12 | go-mod-tidy: |
| 13 | runs-on: ubuntu-latest |
| 14 | steps: |
| 15 | - name: Check out code |
| 16 | uses: actions/checkout@v4 |
| 17 | with: |
| 18 | show-progress: false |
| 19 | |
| 20 | - name: Set up Go |
| 21 | uses: actions/setup-go@v5 |
| 22 | with: |
| 23 | go-version-file: go.mod |
| 24 | cache: false |
| 25 | |
| 26 | - name: Run go mod tidy |
| 27 | run: go mod tidy |
| 28 | |
| 29 | - name: Check for local changes |
| 30 | run: git diff --exit-code |