diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 0000000..876de83 --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,18 @@ +name: golangci-lint +on: + pull_request: +permissions: + contents: read +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v3 + with: + go-version: 1.19.3 + - uses: actions/checkout@v3 + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.50.1 diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000..a8ad39d --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,5 @@ +linters: + enable: + - gofmt + disable: + - errcheck