mirror of https://github.com/go-sonic/sonic.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
734 B
YAML
36 lines
734 B
YAML
name: Linter
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- v*
|
|
paths:
|
|
- "**/*.go"
|
|
- ".github/workflows/linter.yml"
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
paths:
|
|
- "**/*.go"
|
|
- ".github/workflows/linter.yml"
|
|
|
|
jobs:
|
|
lint:
|
|
if: github.repository == 'go-sonic/sonic'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ^1.19
|
|
|
|
- name: Checkout codebase
|
|
uses: actions/checkout@v3
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: latest
|
|
args: --config=.github/linters/.golangci.yml
|
|
only-new-issues: true
|