lint.yml (446B)
1 name: golint 2 on: 3 push: 4 branches: [main] 5 pull_request: 6 branches: [main] 7 jobs: 8 test: 9 name: Run golint 10 runs-on: ubuntu-latest 11 steps: 12 - name: Set up Go 13 uses: actions/setup-go@v1 14 with: 15 go-version: '1.15' 16 - name: Check out code 17 uses: actions/checkout@v2 18 - name: Install golint 19 run: go get golang.org/x/lint/golint 20 - name: Run golint 21 run: $(go env GOPATH)/bin/golint ./...