-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from nano-interactive/feat/grpc-dns-resolver
Feat/grpc dns resolver
- Loading branch information
Showing
22 changed files
with
794 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,28 @@ | ||
name: 'GolangCI Lint' | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
push: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-golangci-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-golangci-${{ hashFiles('**/go.sum') }} | ||
- name: golangci-lint | ||
uses: reviewdog/action-golangci-lint@v2 | ||
with: | ||
golangci_lint_flags: "--tests=false" | ||
golangci_lint_flags: "--config=.golangci.yml" | ||
cache: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: 'Create Release' | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
create_release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- name: Get Tag | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
uses: olegtarasov/get-tag@v2.1.3 | ||
id: version_tag | ||
with: | ||
tagRegex: "v(.*)" | ||
- name: Upload Release Asset | ||
uses: softprops/action-gh-release@v1 | ||
id: release | ||
with: | ||
name: "v${{ steps.version_tag.outputs.tag }}" | ||
tag_name: "v${{ steps.version_tag.outputs.tag }}" | ||
generate_release_notes: true | ||
append_body: true | ||
prerelease: false | ||
fail_on_unmatched_files: true | ||
- name: "Generate release changelog" | ||
uses: heinrichreimer/action-github-changelog-generator@v2.3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
author: true | ||
releaseUrl: ${{ steps.release.outputs.url }} | ||
issues: false | ||
pullRequests: true | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "Update CHANGELOG.md" | ||
branch: master | ||
commit_options: '--no-verify --signoff' | ||
file_pattern: CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
on: [push, pull_request] | ||
name: Security | ||
jobs: | ||
Gosec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- name: Run Gosec | ||
uses: securego/gosec@master | ||
with: | ||
args: ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
run: | ||
concurrency: 16 | ||
timeout: 5m | ||
issues-exit-code: 1 | ||
tests: true | ||
go: '1.22' | ||
modules-download-mode: mod | ||
allow-parallel-runners: true | ||
|
||
issues: | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- gocyclo | ||
- errcheck | ||
- dupl | ||
- gosec | ||
exclude-files: | ||
- .*_gen\.go$ | ||
- .*setup\.go$ | ||
|
||
output: | ||
print-issued-lines: true | ||
print-linter-name: true | ||
uniq-by-line: true | ||
sort-results: true | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- asasalint | ||
- bidichk | ||
- bodyclose | ||
- decorder | ||
- dupl | ||
- durationcheck | ||
- errcheck | ||
- errchkjson | ||
- errname | ||
- errorlint | ||
- exportloopref | ||
- forbidigo | ||
- gofumpt | ||
- ginkgolinter | ||
- gocheckcompilerdirectives | ||
- gocognit | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- godox | ||
- goerr113 | ||
- goheader | ||
- goimports | ||
- gomodguard | ||
- goprintffuncname | ||
- gosec | ||
- gosimple | ||
- gosmopolitan | ||
- govet | ||
- grouper | ||
- importas | ||
- ineffassign | ||
- interfacebloat | ||
- loggercheck | ||
- maintidx | ||
- makezero | ||
- mirror | ||
- misspell | ||
- nakedret | ||
- nestif | ||
- nilerr | ||
- nilnil | ||
- noctx | ||
- nolintlint | ||
- nonamedreturns | ||
- nosprintfhostport | ||
- paralleltest | ||
- prealloc | ||
- predeclared | ||
- promlinter | ||
- reassign | ||
- revive | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- staticcheck | ||
- stylecheck | ||
- tenv | ||
- testableexamples | ||
- testpackage | ||
- thelper | ||
- tparallel | ||
- unconvert | ||
- unparam | ||
- unused | ||
- usestdlibvars | ||
- wastedassign | ||
- whitespace | ||
- zerologlint | ||
- prealloc | ||
- perfsprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.