Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
moattarwork committed May 6, 2021
0 parents commit 1f20960
Show file tree
Hide file tree
Showing 11 changed files with 1,244 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT_Template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Bug report
about: Create a report about something that is not working
---

### Describe the bug
A clear and concise description of what the bug is.

### To Reproduce
Steps to reproduce the behavior:
1. Using version '...' of component
2. Run this code '....'
3. With these arguments '....'
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.

### Additional context
Add any other context about the problem here.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Feature request
about: Suggest an idea for this project
---

### Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Example: I am trying to do [...] but [...]

### Describe the solution you'd like
A clear and concise description of what you want to happen. Include any alternative solutions you've considered.

### Additional context
Add any other context or screenshots about the feature request here.
47 changes: 47 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Pull Request Template

## Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

New Features

- [Jira number or description]

Fixes

- [Jira number or description]

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

## Dependent Releases

- Dependent Releases ...

## Required Configuration on CI/CD platform

- Sample Changes

## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

- [ ] Test A
- [ ] Test B

## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
- [ ] My changes fullfill the acceptance criteria for the story or bug
- [ ] I made/planned the required configuration changes on CI/CD
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI on Branches and PRs

on:
workflow_dispatch:
branches-ignore: [ master ]
paths: "src/**"

push:
branches-ignore: [ master ]
paths: "src/**"

pull_request:
branches: [ master ]
paths: "src/**"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: "5.5.x"
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x"
- name: Install dependencies
run: dotnet restore src
- name: Use GitVersion
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.7
- name: Display the version
run: |
echo "Version: ${{ steps.gitversion.outputs.semVer }}"
- name: Build
run: |
dotnet build src --configuration Release --no-restore -p:version=${{ steps.gitversion.outputs.semVer }}
- name: Unit & integration test
run: |
dotnet test src --configuration Release --no-restore -p:version=${{ steps.gitversion.outputs.semVer }}
- name: Collect Artifacts
uses: actions/upload-artifact@v2
with:
name: nuget-packages
path: "**/*.nupkg"
- name: Configure github as Package Repository
run: dotnet nuget add source https://nuget.pkg.github.com/icgam/index.json -n "github"
- name: Publish the package to GitHub Packages
run: dotnet nuget push "**/*.nupkg" -s "github" -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release build on master/main

on:
push:
branches: [ master ]
paths: "src/**"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: "5.5.x"
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x"
- name: Install dependencies
run: dotnet restore src
- name: Use GitVersion
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.7
- name: Display the version
run: |
echo "Version: ${{ steps.gitversion.outputs.semVer }}"
- name: Build
run: |
dotnet build src --configuration Release --no-restore -p:version=${{ steps.gitversion.outputs.semVer }}
- name: Unit & integration test
run: |
dotnet test src --configuration Release --no-restore -p:version=${{ steps.gitversion.outputs.semVer }}
- name: Collect Artifacts
uses: actions/upload-artifact@v2
with:
name: nuget-packages
path: "**/*.nupkg"
- name: Publish the package to NuGet.Org
run: dotnet nuget push "**/*.nupkg" -s -s https://api.nuget.org/v3/index.json -k ${{ secrets.PUBLISH_NUGET_ORG }} --skip-duplicate
Loading

0 comments on commit 1f20960

Please sign in to comment.