-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update GitHub Actions #150
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Surround headings with blank lines for better readability. - ## Describe the solution you'd like
+
+ ## Describe the solution you'd like Committable suggestion
Suggested change
|
||||||||
A clear and concise description of what you want to happen. | ||||||||
|
||||||||
## Describe alternatives you've considered | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Surround headings with blank lines for better readability. - ## Describe alternatives you've considered
+
+ ## Describe alternatives you've considered Committable suggestion
Suggested change
|
||||||||
A clear and concise description of any alternative solutions or features you've considered. | ||||||||
|
||||||||
## Additional context | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Surround headings with blank lines for better readability. - ## Additional context
+
+ ## Additional context Committable suggestion
Suggested change
|
||||||||
Add any other context or screenshots about the feature request here. |
This file was deleted.
This file was deleted.
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 test (linux) | ||
|
||
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 was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
# generated by octocov init | ||
coverage: | ||
if: true | ||
acceptable: 80% | ||
testExecutionTime: | ||
if: true | ||
acceptable: 1:1.1 | ||
acceptable: current <= 1min && diff <= 2sec | ||
exclude: | ||
- "github.com/nao1215/gup/main.go" | ||
- "github.com/nao1215/gup/cmd/root.go" | ||
- "github.com/nao1215/gup/cmd/man.go" | ||
- "github.com/nao1215/gup/cmd/bug_report.go" | ||
- "github.com/nao1215/gup/internal/assets/asset.go" | ||
- "github.com/nao1215/gup/internal/completion/completion.go" | ||
badge: | ||
path: docs/coverage.svg | ||
diff: | ||
datastores: | ||
- artifact://${GITHUB_REPOSITORY} | ||
comment: | ||
if: is_pull_request | ||
summary: | ||
if: true | ||
report: | ||
if: is_default_branch | ||
datastores: | ||
- artifact://${GITHUB_REPOSITORY} | ||
coverage: | ||
badge: | ||
path: docs/coverage.svg | ||
codeToTestRatio: | ||
badge: | ||
path: docs/ratio.svg | ||
testExecutionTime: | ||
badge: | ||
path: docs/time.svg | ||
path: docs/time.svg |
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,4 +1,4 @@ | ||||||||
.PHONY: build test clean vet fmt chkfmt changelog tools help | ||||||||
.PHONY: build test clean vet fmt chkfmt changelog tools help coverage-tree | ||||||||
|
||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Define the + GO_INSTALL = $(GO) install Committable suggestion
Suggested change
|
||||||||
APP = gup | ||||||||
VERSION = $(shell git describe --tags --abbrev=0) | ||||||||
|
@@ -34,6 +34,12 @@ vet: ## Start go vet | |||||||
fmt: ## Format go source code | ||||||||
$(GO_FORMAT) $(GO_PKGROOT) | ||||||||
|
||||||||
coverage-tree: test ## Generate coverage tree | ||||||||
go-cover-treemap -statements -coverprofile cover.out > doc/img/cover-tree.svg | ||||||||
|
||||||||
tools: ## Install dependency tools | ||||||||
$(GO_INSTALL) github.com/nikolaydubina/go-cover-treemap@latest | ||||||||
|
||||||||
.DEFAULT_GOAL := help | ||||||||
help: | ||||||||
@grep -E '^[0-9a-zA-Z_-]+[[:blank:]]*:.*?## .*$$' $(MAKEFILE_LIST) | sort \ | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -2,10 +2,6 @@ | |||||||
[](#contributors-) | ||||||||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||||||||
[](https://github.com/avelino/awesome-go) | ||||||||
[](https://github.com/nao1215/gup/actions/workflows/multi_ver_unittest.yml) | ||||||||
[](https://github.com/nao1215/gup/actions/workflows/windows_test.yml) | ||||||||
[](https://github.com/nao1215/gup/actions/workflows/mac_test.yml) | ||||||||
[](https://github.com/nao1215/gup/actions/workflows/linux_test.yml) | ||||||||
[](https://github.com/nao1215/gup/actions/workflows/reviewdog.yml) | ||||||||
 | ||||||||
[](https://github.com/nao1215/gup/actions/workflows/security.yml) | ||||||||
|
@@ -197,6 +193,11 @@ Contributions are not only related to development. For example, GitHub Star moti | |||||||
### Star History | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Surround headings with blank lines for better readability. - ### Star History
+
+ ### Star History Committable suggestion
Suggested change
|
||||||||
[](https://star-history.com/#nao1215/gup&Date) | ||||||||
|
||||||||
### For Developers | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Surround headings with blank lines for better readability. - ### For Developers
+
+ ### For Developers Committable suggestion
Suggested change
|
||||||||
When adding new features or fixing bugs, please write unit tests. The sqly is unit tested for all packages as the unit test tree map below shows. | ||||||||
|
||||||||
 | ||||||||
|
||||||||
## Contact | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Surround headings with blank lines for better readability. - ## Contact
+
+ ## Contact Committable suggestion
Suggested change
|
||||||||
If you would like to send comments such as "find a bug" or "request for additional features" to the developer, please use one of the following contacts. | ||||||||
|
||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surround headings with blank lines for better readability.
Committable suggestion