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.

20 lines
383 B

  1. name: Golangci Lint
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. env:
  7. GOPROXY: "https://proxy.golang.org"
  8. jobs:
  9. lint:
  10. name: Lint
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Init Go modules
  15. run: go mod init github.com/guanguans/id-validator
  16. - name: Run golangci-lint
  17. uses: actions-contrib/golangci-lint@v1