Skip to content

Commit

Permalink
build: [#423] Add golang action.
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed Dec 20, 2023
1 parent 71740a0 commit ba99d87
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,4 @@ jobs:
docker run --rm -v "$PWD:/mnt" koalaman/shellcheck:v0.7.1 */*.sh -x
docker run --rm -v ${PWD}:/data markdownlint/markdownlint:0.11.0 \
README.md -s /data/configs/.markdownlint.rb
docker run --rm -v $(pwd):/app -w /app -e GOFLAGS=-buildvcs=false \
golangci/golangci-lint:v1.55.2-alpine golangci-lint run -v \
--timeout 2m30s --config configs/.golangci.yml
if: ${{ startsWith(matrix.os, 'ubuntu') }}
12 changes: 12 additions & 0 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Golang
'on': push
jobs:
mcaf-mcvs-golang-action:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- uses: 030/mcaf-mcvs-golang-action@1-golangci-lint
with:
golang-unit-tests-exclusions: |-
'\(cmd\/n3dr\|internal\/app\/n3dr\/\(goswagger\|n3drtest\)\)'
20 changes: 10 additions & 10 deletions configs/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ issues:
linters:
enable-all: true
disable:
- cyclop
- exhaustruct
- forbidigo
- forcetypeassert
- gochecknoglobals
- goconst
- gocritic
- goerr113
- golint
- gomnd
# - cyclop
# - exhaustruct
# - forbidigo
# - forcetypeassert
# - gochecknoglobals
# - goconst
# - gocritic
# - goerr113
# - golint
# - gomnd
- lll
- nestif
- nlreturn
Expand Down

0 comments on commit ba99d87

Please sign in to comment.