github.com/sagernet/sing@v0.4.0-beta.19.0.20240518125136-f67a0988a636/.github/workflows/lint.yml (about) 1 name: Lint 2 3 on: 4 push: 5 branches: 6 - dev 7 paths-ignore: 8 - '**.md' 9 - '.github/**' 10 - '!.github/workflows/lint.yml' 11 pull_request: 12 branches: 13 - dev 14 15 jobs: 16 build: 17 name: Build 18 runs-on: ubuntu-latest 19 steps: 20 - name: Checkout 21 uses: actions/checkout@v4 22 with: 23 fetch-depth: 0 24 - name: Setup Go 25 uses: actions/setup-go@v4 26 with: 27 go-version: ^1.22 28 - name: Cache go module 29 uses: actions/cache@v3 30 with: 31 path: | 32 ~/go/pkg/mod 33 key: go-${{ hashFiles('**/go.sum') }} 34 - name: golangci-lint 35 uses: golangci/golangci-lint-action@v3 36 with: 37 version: latest