-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
4 changed files
with
130 additions
and
28 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,31 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
A clear and concise description of what the bug is. | ||
|
||
## How to Reproduce | ||
Steps to reproduce the issue. | ||
|
||
## Expected Behavior | ||
How you expect your program to behave. | ||
|
||
## Versions | ||
Versions you are using. | ||
|
||
## Screenshots | ||
Any relevant screenshots. | ||
|
||
## Additional Context | ||
Any additional context about the problem. | ||
|
||
## Environment | ||
- Go Versions: [e.g. 1.21.1] | ||
- Operating Systems: [e.g. Linux, Windows] | ||
- Relevant Environment Variables: [e.g. GOPATH, GOROOT] |
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? Please describe.** | ||
A clear and concise description of what the problem is. Ex. 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 was deleted.
Oops, something went wrong.
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,79 @@ | ||
name: OpenSource CI/CD | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- staging | ||
- develop | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
- staging | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.21.4" | ||
|
||
- name: Run build | ||
run: go build . | ||
|
||
lint: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.21.4" | ||
|
||
- name: Install linters | ||
run: | | ||
go install golang.org/x/lint/golint@latest | ||
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | ||
go install github.com/client9/misspell/cmd/misspell@latest | ||
go install github.com/gordonklaus/ineffassign@latest | ||
# go install github.com/securego/gosec/cmd/gosec@latest | ||
|
||
- name: Run golint | ||
run: | | ||
echo "Starting golint..." | ||
golint ./... | ||
echo "Completed golint" | ||
- name: Run gocyclo | ||
run: | | ||
echo "Starting gocyclo..." | ||
gocyclo -over 15 . | ||
echo "Completed gocyclo" | ||
- name: Run misspell | ||
run: | | ||
echo "Starting misspell..." | ||
misspell -error . | ||
echo "Completed misspell" | ||
- name: Run ineffassign | ||
run: | | ||
echo "Starting ineffassign..." | ||
ineffassign . | ||
echo -e "\033[32mCompleted ineffassign\033[0m" | ||
# - name: Run gosec | ||
# run: gosec ./... |