Skip to content

Commit

Permalink
ci: Add nilaway and golangci lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fpuc committed Nov 20, 2023
1 parent 6395d37 commit 843ad5a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: golangci-lint
on:
push:
branches:
tags:
pull_request:

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
args: generator/... go/...
27 changes: 27 additions & 0 deletions .github/workflows/nilaway.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: nilaway
on:
push:
branches:
tags:
pull_request:

permissions:
contents: read

jobs:
nilaway:
name: nilaway
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false

- name: nilaway
run: |
go install go.uber.org/nilaway/cmd/nilaway@latest
nilaway -exclude-errors-in-files "vendor/" ./generator/...
nilaway -exclude-errors-in-files "vendor/" ./go/...

0 comments on commit 843ad5a

Please sign in to comment.