From d86411dd840098e37f7df4fdcc654f14050ff817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Sat, 26 Jun 2021 11:46:29 +0800 Subject: [PATCH] update *.yml --- FUNDING.yml | 12 ++++++++ README.md | 70 ++++++++++++++++++--------------------------- codeql-analysis.yml | 19 ++++++++++++ 3 files changed, 59 insertions(+), 42 deletions(-) create mode 100644 FUNDING.yml create mode 100644 codeql-analysis.yml diff --git a/FUNDING.yml b/FUNDING.yml new file mode 100644 index 0000000..4b16f59 --- /dev/null +++ b/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/README.md b/README.md index 58490ad..c5565c9 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ 通过Go实现从本地连接到远程服务器的数据库 [comment]: <> (dtapps) -[![GitHub Org's stars](https://img.shields.io/github/stars/dtapps?style=for-the-badge)](https://github.com/dtapps) +[![GitHub Org's stars](https://img.shields.io/github/stars/dtapps)](https://github.com/dtapps) [comment]: <> (go) -[![golang version](https://img.shields.io/badge/golang-%3E%3D1.6-8892BF.svg?style=for-the-badge)](https://pkg.go.dev/github.com/dtapps/go-ssh-tunnel) +[![golang version](https://img.shields.io/badge/golang-%3E%3D1.6-8892BF.svg)](https://pkg.go.dev/github.com/dtapps/go-ssh-tunnel) [![godoc](https://pkg.go.dev/badge/github.com/dtapps/go-ssh-tunnel?status.svg)](https://pkg.go.dev/github.com/dtapps/go-ssh-tunnel) [comment]: <> (goproxy.cn) @@ -20,54 +20,40 @@ [![go report card](https://goreportcard.com/badge/github.com/dtapps/go-ssh-tunnel)](https://goreportcard.com/report/github.com/dtapps/go-ssh-tunnel) [comment]: <> (github.com) -[![latest release](https://badgen.net/github/release/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![latest stable release](https://badgen.net/github/release/dtapps/go-ssh-tunnel/stable)](https://github.com/dtapps/go-ssh-tunnel) -[![latest tag](https://badgen.net/github/tag/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![watchers](https://badgen.net/github/watchers/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![combined checks (master branch)](https://badgen.net/github/checks/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![stars](https://badgen.net/github/stars/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![forks](https://badgen.net/github/forks/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![issues](https://badgen.net/github/issues/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![branches](https://badgen.net/github/branches/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![releases](https://badgen.net/github/releases/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![tags](https://badgen.net/github/tags/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![license](https://badgen.net/github/license/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![contributors](https://badgen.net/github/contributors/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![assets downloads for latest release](https://badgen.net/github/assets-dl/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![repository dependents](https://badgen.net/github/dependents-repo/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![package dependents](https://badgen.net/github/dependents-pkg/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![dependabot status](https://badgen.net/github/dependabot/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub last commit](https://img.shields.io/github/last-commit/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub commit activity](https://img.shields.io/github/commit-activity/w/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![Github All Contributors](https://img.shields.io/github/all-contributors/dtapps/go-ssh-tunnel/master?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub go.mod Go version (branch)](https://img.shields.io/github/go-mod/go-version/dtapps/go-version/master?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub go.mod Go version (subdirectory of monorepo)](https://img.shields.io/github/go-mod/go-version/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub go.mod Go version (branch & subdirectory of monorepo)](https://img.shields.io/github/go-mod/go-version/dtapps/go-ssh-tunnel/master?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub release (latest by date)](https://img.shields.io/github/v/release/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub pull requests](https://img.shields.io/github/issues-pr/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub issues](https://img.shields.io/github/issues/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub Sponsors](https://img.shields.io/github/sponsors/dtapps?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub language count](https://img.shields.io/github/languages/count/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub search hit counter](https://img.shields.io/github/search/dtapps/go-ssh-tunnel/go?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) -[![GitHub top language](https://img.shields.io/github/languages/top/dtapps/go-ssh-tunnel?style=for-the-badge)](https://github.com/dtapps/go-ssh-tunnel) +[![watchers](https://badgen.net/github/watchers/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/watchers) +[![stars](https://badgen.net/github/stars/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/stargazers) +[![forks](https://badgen.net/github/forks/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/network/members) +[![issues](https://badgen.net/github/issues/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/issues) +[![branches](https://badgen.net/github/branches/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/branches) +[![releases](https://badgen.net/github/releases/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/releases) +[![tags](https://badgen.net/github/tags/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/tags) +[![license](https://badgen.net/github/license/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/blob/master/LICENSE) +[![contributors](https://badgen.net/github/contributors/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/CONTRIBUTING.md) +[![GitHub go.mod Go version (subdirectory of monorepo)](https://img.shields.io/github/go-mod/go-version/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) +[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/releases) +[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/tags) +[![GitHub pull requests](https://img.shields.io/github/issues-pr/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/pulls) +[![GitHub issues](https://img.shields.io/github/issues/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel/issues) +[![GitHub Sponsors](https://img.shields.io/github/sponsors/dtapps)](https://github.com/dtapps/go-ssh-tunnel/FUNDING.yml) +[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) +[![GitHub language count](https://img.shields.io/github/languages/count/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) +[![GitHub search hit counter](https://img.shields.io/github/search/dtapps/go-ssh-tunnel/go)](https://github.com/dtapps/go-ssh-tunnel) +[![GitHub top language](https://img.shields.io/github/languages/top/dtapps/go-ssh-tunnel)](https://github.com/dtapps/go-ssh-tunnel) [comment]: <> (scrutinizer-ci.com) -[![Scrutinizer build (GitHub/Bitbucket)](https://img.shields.io/scrutinizer/build/g/dtapps/go-ssh-tunnel/master?style=for-the-badge)](https://scrutinizer-ci.com/g/dtapps/go-ssh-tunnel) -[![Scrutinizer coverage (GitHub/BitBucket)](https://img.shields.io/scrutinizer/coverage/g/dtapps/go-ssh-tunnel/master?style=for-the-badge)](https://scrutinizer-ci.com/g/dtapps/go-ssh-tunnel) -[![Scrutinizer code quality (GitHub/Bitbucket)](https://img.shields.io/scrutinizer/quality/g/dtapps/go-ssh-tunnel/master?style=for-the-badge)](https://scrutinizer-ci.com/g/dtapps/go-ssh-tunnel) +[![Scrutinizer build (GitHub/Bitbucket)](https://img.shields.io/scrutinizer/build/g/dtapps/go-ssh-tunnel/master)](https://scrutinizer-ci.com/g/dtapps/go-ssh-tunnel) +[![Scrutinizer coverage (GitHub/BitBucket)](https://img.shields.io/scrutinizer/coverage/g/dtapps/go-ssh-tunnel/master)](https://scrutinizer-ci.com/g/dtapps/go-ssh-tunnel) +[![Scrutinizer code quality (GitHub/Bitbucket)](https://img.shields.io/scrutinizer/quality/g/dtapps/go-ssh-tunnel/master)](https://scrutinizer-ci.com/g/dtapps/go-ssh-tunnel) [comment]: <> (www.travis-ci.com) -[![Travis (.com) branch](https://img.shields.io/travis/com/dtapps/go-ssh-tunnel/master?style=for-the-badge)](https://www.travis-ci.com/github/dtapps/go-ssh-tunnel) +[![Travis (.com) branch](https://img.shields.io/travis/com/dtapps/go-ssh-tunnel/master)](https://www.travis-ci.com/github/dtapps/go-ssh-tunnel) [comment]: <> (app.codecov.io) -[![Codecov branch](https://img.shields.io/codecov/c/github/dtapps/go-ssh-tunnel/master?style=for-the-badge)](https://app.codecov.io/gh/dtapps/go-ssh-tunnel) +[![Codecov branch](https://img.shields.io/codecov/c/github/dtapps/go-ssh-tunnel/master)](https://app.codecov.io/gh/dtapps/go-ssh-tunnel) [comment]: <> (gitlab.com) -[![gitlab (.com)](https://gitlab.com/dtapps/go-ssh-tunnel/badges/master/pipeline.svg)](https://gitlab.com/dtapps/go-ssh-tunnel) +[![gitlab (.com)](https://gitlab.com/dtapps/go-ssh-tunnel/badgcodeql-analysis.yml +FUNDING.ymles/master/pipeline.svg)](https://gitlab.com/dtapps/go-ssh-tunnel) [comment]: <> (codechina.csdn.net) [![codechina.csdn (.net)](https://codechina.csdn.net/dtapps/go-ssh-tunnel/badges/master/pipeline.svg)](https://codechina.csdn.net/dtapps/go-ssh-tunnel) diff --git a/codeql-analysis.yml b/codeql-analysis.yml new file mode 100644 index 0000000..2375558 --- /dev/null +++ b/codeql-analysis.yml @@ -0,0 +1,19 @@ +- name: GoLang Test + # You may pin to the exact commit or the version. + # uses: n8maninger/action-golang-test@a8263fc1a85b63937b1b365946518675ceab5740 + uses: n8maninger/action-golang-test@v1 + with: + # the package to run the tests for + package: # optional, default is ./... + # additional go test command line arguments, individual arguments should be separated by ';' + args: # optional, default is + # outputs a warning for long running tests, -1 to disable + show-long-running-tests: # optional, default is 30 + # includes package output in the parsed output + show-package-output: # optional + # shows tests that were run and passed + show-passed-tests: # optional + # shows the unparsed std-out from go test instead of the parsed output + show-stdout: # optional + # skips installing and setting up Go, useful for defining additional parameters for actions/setup-go + skip-go-install: # optional \ No newline at end of file -- GitLab