Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
yahya.hindioglu committed Mar 14, 2024
2 parents f24628d + c9c8532 commit 93dee03
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 28 deletions.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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]
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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.
28 changes: 0 additions & 28 deletions .github/workflows/go.yml

This file was deleted.

79 changes: 79 additions & 0 deletions .github/workflows/workflow.yaml
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 ./...

0 comments on commit 93dee03

Please sign in to comment.