github.com/vnpaycloud-console/gophercloud/v2@v2.0.5/.github/workflows/lint.yaml (about) 1 on: [push, pull_request] 2 name: Linters 3 permissions: 4 contents: read 5 6 jobs: 7 test: 8 runs-on: ubuntu-latest 9 10 steps: 11 - uses: actions/setup-go@v5 12 with: 13 go-version: '1' 14 15 - uses: actions/checkout@v4 16 17 - name: Run go fmt 18 run: | 19 ./script/format 20 21 - name: Run go vet 22 run: | 23 ./script/vet 24 25 - name: Ensure go.mod is up-to-date 26 run: | 27 if [ $(go mod tidy && git diff | wc -l) -gt 0 ]; then git diff && exit 1; fi