Skip to content

Commit

Permalink
fixup! ci: add Go-related workflows and steps
Browse files Browse the repository at this point in the history
  • Loading branch information
torives committed Oct 6, 2023
1 parent b359f5d commit 76b2235
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/go-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ jobs:
with:
go-version-file: "go.mod"

- name: Check code format
run: |
output=$(gofmt -s -l .)
if [ -n "$output" ]; then
echo "$output"
exit 1;
fi
- name: Run linter
uses: golangci/golangci-lint-action@v3
with:
Expand Down
13 changes: 13 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
linters:
enable:
- exhaustive
- goconst
- godox
- gofmt
- gomnd
- lll
- misspell
linters-settings:
lll:
line-length: 100
tab-width: 4

0 comments on commit 76b2235

Please sign in to comment.