Skip to content

Commit

Permalink
chore: add golang-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
CriticalNoob02 committed Aug 26, 2024
1 parent ccbb5e8 commit 7f7f8ae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,17 @@ jobs:
with:
go-version: 1.22.6

- name: Run staticcheck with Reviewdog
uses: reviewdog/action-staticcheck@v1
with:
level: error
reporter: github-pr-review
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2
- name: Run misspell
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
locale: "US"
- name: Run golangci-lint
run: golangci-lint run --out-format=line-number > golangci-lint-report.txt || true
continue-on-error: true

- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
reporter: github-pr-review
golangci_lint_flags: "--enable-all --exclude-use-default=false"
github_token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
linters:
enable:
- staticcheck
- revive

run:
timeout: 5m
skip-dirs:
- vendor
tests: false

0 comments on commit 7f7f8ae

Please sign in to comment.