Skip to content

Commit

Permalink
workflows grouming
Browse files Browse the repository at this point in the history
  • Loading branch information
s0rg committed Jun 12, 2022
1 parent feadaa2 commit 1964c0c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: monthly
interval: weekly
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
interval: weekly
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: ^1.18
check-latest: true
cache: true
- name: test-coverage
uses: paambaati/[email protected]
env:
Expand All @@ -39,6 +41,7 @@ jobs:
coverageLocations: ${{ github.workspace }}/cover.out:gocov
prefix: github.com/${{ github.repository }}
codeql:
if: github.event_name == 'push'
runs-on: ubuntu-latest
environment:
name: ci
Expand All @@ -49,6 +52,8 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: ^1.18
check-latest: true
cache: true
- name: init codeql
uses: github/codeql-action/init@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: ^1.18
check-latest: true
cache: true
- name: build
uses: goreleaser/goreleaser-action@v3
with:
Expand Down
15 changes: 12 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,31 @@ linters-settings:
linters:
enable-all: true
disable:
- exhaustivestruct
- gochecknoglobals
- nonamedreturns
- testpackage
- exhaustive
- exhaustruct
- exhaustive
- varnamelen
- forbidigo
- typecheck
- gofumpt
- gci
# deprecated :(
- exhaustivestruct
- interfacer
- scopelint
- maligned
- golint
- bodyclose
- contextcheck
- nilerr
- noctx
- rowserrcheck
- sqlclosecheck
- structcheck
- tparallel
- unparam
- wastedassign
fast: false

output:
Expand Down

0 comments on commit 1964c0c

Please sign in to comment.