github.com/llir/llvm@v0.3.6/.github/workflows/lint.yml (about) 1 on: 2 push: 3 paths: 4 - '**.go' 5 6 jobs: 7 lint: 8 name: Lint 9 runs-on: ubuntu-latest 10 steps: 11 - name: Checkout code 12 uses: actions/checkout@v2 13 - name: Run linters 14 run: | 15 go install golang.org/x/lint/golint@latest 16 go install github.com/mgechev/revive@latest 17 echo "### revive" 18 $(go env GOPATH)/bin/revive -config .revive.toml ./... 19 echo "### golint" 20 $(go env GOPATH)/bin/golint ./... 21 exit 0