github.com/bluenviron/mediacommon@v1.9.3/.github/workflows/lint.yml (about) 1 name: lint 2 3 on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9 jobs: 10 golangci-lint: 11 runs-on: ubuntu-20.04 12 13 steps: 14 - uses: actions/checkout@v2 15 16 - uses: actions/setup-go@v3 17 with: 18 go-version: "1.19" 19 20 - uses: golangci/golangci-lint-action@v3 21 with: 22 version: v1.56.2 23 24 go-mod-tidy: 25 runs-on: ubuntu-20.04 26 27 steps: 28 - uses: actions/checkout@v2 29 30 - uses: actions/setup-go@v2 31 with: 32 go-version: "1.21" 33 34 - run: | 35 go mod tidy 36 git diff --exit-code