github.com/dgraph-io/ristretto@v0.1.2-0.20240116140435-c67e07994f91/.github/workflows/ci-ristretto-lint.yml (about) 1 name: ci-ristretto-lint 2 on: 3 push: 4 branches: 5 - main 6 pull_request: 7 branches: 8 - main 9 schedule: 10 - cron: "0 0 * * *" 11 jobs: 12 go-lint: 13 if: github.event.pull_request.draft == false 14 name: lint 15 runs-on: ubuntu-20.04 16 steps: 17 - uses: actions/checkout@v4 18 - name: Get Go Version 19 run: | 20 #!/bin/bash 21 GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) 22 echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV 23 - name: Setup Go 24 uses: actions/setup-go@v5 25 with: 26 go-version: ${{ env.GOVERSION }} 27 - name: golang-lint 28 env: 29 # prevent OOM 30 GOGC: 10 31 uses: golangci/golangci-lint-action@v3 32 with: 33 version: latest 34 only-new-issues: true 35 args: --timeout=10m