github.com/shippio/gqlgen@v0.0.0-20220912092219-633ea699ef07/.github/workflows/lint.yml (about) 1 name: Lint 2 on: [push, pull_request] 3 4 jobs: 5 lint: 6 strategy: 7 matrix: 8 go: [1.16, 1.18] 9 runs-on: ubuntu-latest 10 steps: 11 - uses: actions/checkout@v3 12 - uses: actions/setup-go@v3 13 with: 14 go-version: ${{ matrix.go }} 15 - run: go mod download 16 - run: .github/workflows/check-fmt 17 - run: .github/workflows/check-generate 18 19 coverage: 20 strategy: 21 matrix: 22 go: [1.16, 1.18] 23 runs-on: ubuntu-latest 24 steps: 25 - uses: actions/checkout@v3 26 - uses: actions/setup-go@v3 27 with: 28 go-version: ${{ matrix.go }} 29 - run: go mod download 30 - run: .github/workflows/check-coverage 31 env: 32 COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} 33 34 golangci-lint: 35 strategy: 36 matrix: 37 go: [1.16, 1.18] 38 runs-on: ubuntu-latest 39 steps: 40 - uses: actions/checkout@v3 41 - uses: actions/setup-go@v3 42 with: 43 go-version: ${{ matrix.go }} 44 - name: golangci-lint 45 uses: golangci/golangci-lint-action@v3.1.0 46 with: 47 version: latest 48 # skip cache because of flaky behaviors 49 skip-build-cache: true 50 skip-pkg-cache: true 51 args: '--timeout 5m'