Skip to content

Commit

Permalink
Merge pull request #3 from ditrit/feature/starting_over
Browse files Browse the repository at this point in the history
Feature/starting over
  • Loading branch information
Zorin95670 committed Sep 6, 2022
2 parents 7e03683 + 980c6a3 commit dfa7328
Show file tree
Hide file tree
Showing 36 changed files with 2,722 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: Bug
---

**Describe the bug**

A clear and concise description of what the bug is.

**To Reproduce**

Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**

A clear and concise description of what you expected to happen.

**Screenshots**

If applicable, add screenshots to help explain your problem.

**Application (please complete the following information):**

- verdeter version [vX.X.X] or commit hash

**Additional context**

Add any other context about the problem here.
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/user_story.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: User Story, To be verify
---

## Description

**As a** `[roles impacted]`,

**I want** `[clear context and goals]`

**so that** `[result of this story]`.

## Acceptance Criteria

**Scenario** | `[the name for the behavior that will be described]`
------------ | -------------------------------------------------
**Given** | `[the beginning state of the scenario]`
**When** | `[specific action that the user makes]`
**Then** | `[the outcome of the action in “When”]`
**And** | `[used to continue any of three previous statements]`

### Constraints

`[Put all others constraints here, like list of acceptances values or other]`

## Resources:

`[Put all your resources here, like mockups, diagrams or other here]`

## Notes

`[Some complementary notes if necessary]`

## Links

`[Only use by the team, to link this feature with epic, technical tasks or bugs]`

14 changes: 14 additions & 0 deletions .github/workflows/naming_policy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Assert Branch Naming Convention'
on: pull_request

jobs:
branch-naming-rules:
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-branch-name@master
with:
regex: '^(feature|bugfix|improvement|library|prerelease|release|hotfix|poc)\/[a-z0-9_.-]+$'
allowed_prefixes: 'feature,bugfix,improvement,library,prerelease,release,hotfix,poc'
ignore: main,dev
min_length: 5
max_length: 50
57 changes: 57 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Main CI
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: '^1.18'
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true

# Optional: if set to true then the all caching functionality will be complete disabled,
# takes precedence over all other caching options.
skip-cache: true

# Optional: if set to true then the action don't cache or restore ~/go/pkg.
skip-pkg-cache: true

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
skip-build-cache: true
- name: Run test
run: go test $(go list ./... | grep -v /vendor/) -coverprofile=coverage.out -v
- name: Run test app
run: |
cd testapp/
TESTAPP_OFFSET=1 TESTAPP_1_ROOTNODE=12 go run main.go --config_path testapp_1.yml
- uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.out
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work

# cockroach files
node*

#Vscode conf
.vscode
Loading

0 comments on commit dfa7328

Please sign in to comment.