id-validator/.github/workflows/golangci-lint.yml

20 lines
372 B
YAML
Raw Normal View History

2021-01-12 16:09:37 +08:00
name: Golangci Lint
on:
push:
2021-01-12 16:10:56 +08:00
branches: [main]
2021-01-12 16:09:37 +08:00
pull_request:
env:
GOPROXY: "https://proxy.golang.org"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Init Go modules
2021-01-12 16:15:15 +08:00
run: go mod init guanguans/id-validator
2021-01-12 16:09:37 +08:00
- name: Run golangci-lint
uses: actions-contrib/golangci-lint@v1