diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md deleted file mode 100644 index 50b3c29..0000000 --- a/.github/ISSUE_TEMPLATE/question.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -name: Question -about: Ask a question, so we can help you easily -title: '' -labels: '' -assignees: '' - ---- - -**Describe the Question** - -A clear and concise description of what the question is. - -**Reproducible Code** - -Please construct a minimum complete and reproducible example for us to get the same error. And tell us how to reproduce it like how you send a request or send what request. - -**Expected behavior** - -A clear and concise description of what you expected to happen. - -**Screenshots** - -If applicable, add screenshots to help explain your question. - -**Hertz version:** - -Please provide the version of Hertz you are using. - -**Environment:** - -The output of `go env`. - -**Additional context** - -Add any other context about the question here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 6a22738..6d8be95 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -29,9 +29,3 @@ Please check your PR title with the below requirements: - -#### Which issue(s) this PR fixes: - diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e3ad26b..cfddea7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,7 +3,7 @@ name: Tests on: [ push, pull_request ] jobs: - set-ut: + Lint: runs-on: [ ubuntu-latest ] steps: - uses: actions/checkout@v3 @@ -17,7 +17,4 @@ jobs: run: | go vet -stdmethods=false $(go list ./...) go install mvdan.cc/gofumpt@v0.2.0 - test -z "$(gofumpt -l -extra .)" - - - name: Unit Test - run: go test -race -covermode=atomic -coverprofile=coverage.txt ./... \ No newline at end of file + test -z "$(gofumpt -l -extra .)" \ No newline at end of file diff --git a/Makefile b/Makefile index 5ba96b6..1e03ecd 100644 --- a/Makefile +++ b/Makefile @@ -1,39 +1,7 @@ -SHELL := /bin/bash +.PHONY: start +start: + docker-compose up -d -.PHONY: \ - help \ - coverage \ - vet \ - fmt - - -all: imports fmt vet errors build - -help: - @echo 'Usage: make ... ' - @echo '' - @echo 'Available targets are:' - @echo '' - @echo ' help Show this help screen.' - @echo ' coverage Report code tests coverage.' - @echo ' vet Run go vet.' - @echo ' fmt Run go fmt.' - @echo '' - @echo 'Targets run by default are: lint, vet.' - @echo '' - -deps: - go get golang.org/x/lint/golint - -coverage: - go test $(go list ./... | grep -v examples) -coverprofile coverage.txt ./... - -vet: - go vet ./... - -fmt: - go install mvdan.cc/gofumpt@latest - gofumpt -l -w -extra . - -version: - @go version \ No newline at end of file +.PHONY: stop +stop: + docker-compose down \ No newline at end of file diff --git a/_typos.toml b/_typos.toml deleted file mode 100644 index f80a4fd..0000000 --- a/_typos.toml +++ /dev/null @@ -1,4 +0,0 @@ -# Typo check: https://github.com/crate-ci/typos - -[files] -extend-exclude = ["go.sum"]