build(ci): setup Golang linter nilaway (#1310)

* feat(ci): add golang linter

* continue-on-error
This commit is contained in:
Kyle Sanderson 2023-12-25 04:32:56 -08:00 committed by GitHub
parent 0b34efc753
commit aa6ac6d4db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

33
.github/workflows/golang-linter.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Golang linters
on:
push:
branches:
- "master"
- "develop"
tags:
- 'v*'
pull_request:
jobs:
nilaway:
name: Nilaway Linter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
cache: true
- name: Install Nilaway
run: go install go.uber.org/nilaway/cmd/nilaway@latest
- name: Nilaway
# This will fail for a while. Lots of work needs to go in to resolve the callsites.
# Long-term the bypass below should be removed.
continue-on-error: true
run: nilaway ./...