You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
506 B

  1. name: Lint
  2. on: [ push, pull_request ]
  3. jobs:
  4. lint:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Install Go
  8. uses: actions/setup-go@v1
  9. with:
  10. go-version: 1.14.x
  11. - name: Checkout code
  12. uses: actions/checkout@v2
  13. - name: Lint
  14. run: |
  15. curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0
  16. $(go env GOPATH)/bin/golangci-lint run --timeout=5m -c .golangci.yml