-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
29 changed files
with
1,130 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"projectName": "coincheck", | ||
"projectOwner": "nao1215", | ||
"repoType": "github", | ||
"repoHost": "https://github.com", | ||
"files": [ | ||
"README.md" | ||
], | ||
"imageSize": 70, | ||
"commit": true, | ||
"commitConvention": "angular", | ||
"contributors": [], | ||
"contributorsPerLine": 7, | ||
"linkToUsage": 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 @@ | ||
github: nao1215 |
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,23 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[BUG Report] " | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
## coincheck version** | ||
v0.y.z | ||
|
||
## Description (About the problem) | ||
A clear description of the bug encountered. | ||
|
||
## Steps to reproduce | ||
Steps to reproduce the bug. | ||
|
||
## Expected behavior | ||
Expected behavior. | ||
|
||
## Additional details** | ||
Any other useful data to share. |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Is your feature request related to a problem? | ||
A clear and concise description of what the problem is. E.g. I'm always frustrated when ... | ||
|
||
## Describe the solution you'd like | ||
A clear and concise description of what you want to happen. | ||
|
||
## Describe alternatives you've considered | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
## Additional context | ||
Add any other context or screenshots about the feature request here. |
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 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "20:00" | ||
open-pull-requests-limit: 10 | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,31 @@ | ||
name: Coverage | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
unit_test: | ||
name: Unit test (linux) | ||
|
||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1" | ||
check-latest: true | ||
|
||
- name: Run tests with coverage report output | ||
run: go test -cover -coverpkg=./... -coverprofile=coverage.out ./... | ||
|
||
- uses: k1LoW/octocov-action@v1 |
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 @@ | ||
name: gitleaks | ||
on: [pull_request] | ||
jobs: | ||
scan: | ||
name: gitleaks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gitleaks/gitleaks-action@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,41 @@ | ||
name: reviewdog | ||
on: [pull_request] | ||
|
||
jobs: | ||
golangci-lint: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: golangci-lint | ||
uses: reviewdog/action-golangci-lint@v2 | ||
with: | ||
reporter: github-pr-review | ||
level: warning | ||
|
||
misspell: | ||
name: misspell | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: misspell | ||
uses: reviewdog/action-misspell@v1 | ||
with: | ||
reporter: github-pr-review | ||
level: warning | ||
locale: "US" | ||
|
||
actionlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: reviewdog/action-actionlint@v1 | ||
with: | ||
reporter: github-pr-review | ||
level: warning |
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,37 @@ | ||
name: MultiPlatformUnitTest | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
unit_test: | ||
name: Unit tests | ||
|
||
strategy: | ||
matrix: | ||
os: | ||
- "ubuntu-latest" | ||
- "windows-latest" | ||
- "macos-latest" | ||
go: | ||
- "1" | ||
- "1.22" | ||
- "1.21" | ||
- "1.20" | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Run tests with coverage report output | ||
run: go test -cover -coverpkg=./... -coverprofile=coverage.out ./... | ||
|
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 |
---|---|---|
|
@@ -20,3 +20,6 @@ | |
# Go workspace file | ||
go.work | ||
go.work.sum | ||
|
||
# Project coverage profile | ||
/coverage.* |
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,50 @@ | ||
run: | ||
go: "1.20" | ||
|
||
issues: | ||
exclude-use-default: false | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- errcheck | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- typecheck | ||
- unused | ||
- asciicheck | ||
- bodyclose | ||
- dogsled | ||
- durationcheck | ||
- errorlint | ||
- exhaustive | ||
- exportloopref | ||
- forcetypeassert | ||
- gochecknoglobals | ||
- gochecknoinits | ||
- goconst | ||
- gocritic | ||
- goimports | ||
- gosec | ||
- misspell | ||
- nakedret | ||
- noctx | ||
- nolintlint | ||
- prealloc | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- stylecheck | ||
- tagliatelle | ||
- thelper | ||
- unconvert | ||
- unparam | ||
- wastedassign | ||
- whitespace | ||
linters-settings: | ||
tagliatelle: | ||
case: | ||
use-field-name: true | ||
rules: | ||
json: snake |
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,21 @@ | ||
# generated by octocov init | ||
coverage: | ||
acceptable: 80% | ||
#exclude: | ||
badge: | ||
path: docs/coverage.svg | ||
diff: | ||
datastores: | ||
- artifact://${GITHUB_REPOSITORY} | ||
comment: | ||
if: is_pull_request | ||
report: | ||
if: is_default_branch | ||
datastores: | ||
- artifact://${GITHUB_REPOSITORY} | ||
codeToTestRatio: | ||
badge: | ||
path: docs/ratio.svg | ||
testExecutionTime: | ||
badge: | ||
path: docs/time.svg |
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 @@ | ||
Please approach others with respect. That is everything. |
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,11 @@ | ||
## Contributing as a Developer | ||
- When creating a bug report: Please follow the template and provide detailed information. | ||
- When fixing a feature: Create a Pull Request (PR) with accompanying test code. | ||
- When adding a feature: First, propose the feature in an Issue. | ||
|
||
## Contributing Outside of Coding | ||
The following actions help boost my motivation: | ||
|
||
- Giving a GitHub Star | ||
- Promoting the application | ||
- Becoming a GitHub Sponsor |
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,34 @@ | ||
APP = coincheck | ||
VERSION = $(shell git describe --tags --abbrev=0) | ||
GIT_REVISION := $(shell git rev-parse HEAD) | ||
GO = go | ||
GO_BUILD = $(GO) build | ||
GO_TEST = $(GO) test | ||
GO_TOOL = $(GO) tool | ||
GOOS = "" | ||
GOARCH = "" | ||
GO_PKGROOT = ./... | ||
GO_PACKAGES = $(shell $(GO_LIST) $(GO_PKGROOT)) | ||
GO_LDFLAGS = | ||
|
||
.DEFAULT_GOAL := help | ||
help: ## Show help message | ||
@grep -E '^[0-9a-zA-Z_-]+[[:blank:]]*:.*?## .*$$' $(MAKEFILE_LIST) | sort \ | ||
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[1;32m%-15s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: tools | ||
tools: ## Install dependency tools | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | ||
|
||
.PHONY: test | ||
test: ## Run unit test | ||
env GOOS=$(GOOS) $(GO_TEST) -cover -coverpkg=$(GO_PKGROOT) -coverprofile=coverage.out $(GO_PKGROOT) | ||
$(GO_TOOL) cover -html=coverage.out -o coverage.html | ||
|
||
.PHONY: clean | ||
clean: ## Clean project | ||
-rm -rf coverage.out coverage.html | ||
|
||
.PHONY: lint | ||
lint: ## Run lint | ||
golangci-lint --config .golangci.yml run |
Oops, something went wrong.