-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
401 additions
and
296 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
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
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,10 +1,11 @@ | ||
## Pull Request template | ||
# Pull Request template | ||
|
||
Please, go through these steps before clicking submit on this PR. | ||
|
||
1. Make sure this PR targets the `develop` branch. We follow the git-flow branching model. | ||
2. Give a descriptive title to your PR. | ||
3. Provide a description of your changes. | ||
3. Provide a description of your changes. | ||
4. Make sure you have some relevant tests. | ||
5. Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if applicable). | ||
|
||
**PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING** | ||
## PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING |
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,65 +1,65 @@ | ||
name: Run Tests | ||
on: | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- "**" | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
types: | ||
- opened | ||
- reopened | ||
branches: | ||
- '**' | ||
- "**" | ||
jobs: | ||
golangci: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
check-latest: true | ||
cache: true | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
check-latest: true | ||
cache: true | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
unittests: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
check-latest: true | ||
cache: true | ||
- name: Get dependencies | ||
run: | | ||
go install github.com/kyoh86/richgo@latest | ||
go get -v -t -d ./... | ||
- name: Run tests | ||
id: tests | ||
run: richgo test -v -race -cover ./... | ||
env: | ||
IN_TRAVIS_CI: yes | ||
RICHGO_FORCE_COLOR: 1 | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
check-latest: true | ||
cache: true | ||
- name: Get dependencies | ||
run: | | ||
go install github.com/kyoh86/richgo@latest | ||
go get -v -t -d ./... | ||
- name: Run tests | ||
id: tests | ||
run: richgo test -v -race -cover ./... | ||
env: | ||
IN_TRAVIS_CI: yes | ||
RICHGO_FORCE_COLOR: 1 | ||
summary: | ||
name: Summary Report | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
check-latest: true | ||
cache: true | ||
- name: Get dependencies | ||
run: | | ||
go install github.com/mfridman/tparse@latest | ||
go get -v -t -d ./... | ||
- name: Run tests | ||
id: tests | ||
run: go test -v -race -cover -json ./... | tparse -notests -format=markdown >> $GITHUB_STEP_SUMMARY | ||
env: | ||
IN_TRAVIS_CI: yes | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
check-latest: true | ||
cache: true | ||
- name: Get dependencies | ||
run: | | ||
go install github.com/mfridman/tparse@latest | ||
go get -v -t -d ./... | ||
- name: Run tests | ||
id: tests | ||
run: go test -v -race -cover -json ./... | tparse -notests -format=markdown >> $GITHUB_STEP_SUMMARY | ||
env: | ||
IN_TRAVIS_CI: yes |
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,6 +1,7 @@ | ||
# Develop tools | ||
/.vscode/ | ||
/.idea/ | ||
/.trunk | ||
|
||
# Binaries for programs and plugins | ||
*.exe | ||
|
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,7 @@ | ||
*out | ||
*logs | ||
*actions | ||
*notifications | ||
plugins | ||
user_trunk.yaml | ||
user.yaml |
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,10 @@ | ||
# Autoformatter friendly markdownlint config (all formatting rules disabled) | ||
default: true | ||
blank_lines: false | ||
bullet: false | ||
html: false | ||
indentation: false | ||
line_length: false | ||
spaces: false | ||
url: false | ||
whitespace: false |
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,28 @@ | ||
version: 0.1 | ||
actions: | ||
enabled: | ||
- trunk-announce | ||
- trunk-cache-prune | ||
- trunk-check-pre-push | ||
- trunk-fmt-pre-commit | ||
- trunk-upgrade-available | ||
runtimes: | ||
enabled: | ||
- go@1.18.3 | ||
- node@16.14.2 | ||
lint: | ||
enabled: | ||
- actionlint@1.6.20 | ||
- git-diff-check | ||
- gitleaks@8.13.0 | ||
- gofmt@1.16.7 | ||
- golangci-lint@1.49.0 | ||
- markdownlint@0.32.2 | ||
- prettier@2.7.1 | ||
cli: | ||
version: 0.18.1-beta | ||
plugins: | ||
sources: | ||
- id: trunk | ||
ref: v0.0.4 | ||
uri: https://github.com/trunk-io/plugins |
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 |
---|---|---|
|
@@ -12,7 +12,6 @@ import ( | |
"time" | ||
|
||
"github.com/gorilla/websocket" | ||
|
||
"go-micro.dev/v4/logger" | ||
) | ||
|
||
|
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
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
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ package acme | |
|
||
import ( | ||
"github.com/go-acme/lego/v4/challenge" | ||
|
||
"go-micro.dev/v4/logger" | ||
) | ||
|
||
|
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
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.