Skip to content

Commit 36e58c6

Browse files
committed
Initial commit
0 parents  commit 36e58c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2368
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
### Description
11+
A clear and concise description of what the bug is.
12+
13+
### Steps to reproduce the behavior:
14+
1. docker run -it --rm fossapps/starter.net:latest
15+
2. `curl ...`
16+
17+
### Expected Response
18+
**Curl command**
19+
20+
### Actual Response
21+
**Additional context**
22+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Custom issue template
3+
about: Describe this issue template's purpose here.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement, feature request
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: General Issue (Blank, DIY)
3+
about: Describe this issue template's purpose here.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+

.github/ISSUE_TEMPLATE/question.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Question
3+
about: Request a question
4+
title: ''
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+
### I'm trying to solve
11+
<!-- describe what you're trying to solve ->
12+
13+
### I tried
14+
<!-- What did you try -->
15+
16+
### Additional context
17+
<!-- explain in detail about your question so it's easy to answer -->
18+
19+
<!-- Feel free to delete the template and ask yourself. Make it as easy as possible for people to answer -->
20+
21+
### Sample Codes

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- please describe your PR here -->

.github/workflows/build.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: Build
2+
3+
on: [push]
4+
5+
env:
6+
SERVICE_NAME: micro.starter
7+
SERVICE_NAME_CAPITALIZED: Micro.Starter
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v1
14+
15+
- name: Setup .NET Core
16+
uses: actions/setup-dotnet@v1
17+
with:
18+
dotnet-version: 3.1.100
19+
20+
- name: Build
21+
run: dotnet build --configuration Release
22+
23+
run-unit-tests:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v1
28+
29+
- name: Setup .NET Core
30+
uses: actions/setup-dotnet@v1
31+
with:
32+
dotnet-version: 3.1.100
33+
34+
- name: Run Unit Tests
35+
run: dotnet test
36+
37+
build-docker-image:
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v1
42+
43+
- name: Build Docker Image
44+
run: |
45+
TAG=`git rev-parse --short=4 ${GITHUB_SHA}`
46+
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login --username "${{ secrets.DOCKERHUB_LOGIN }}" --password-stdin
47+
docker build . -t fossapps/$SERVICE_NAME --build-arg VERSION=$TAG
48+
docker tag fossapps/$SERVICE_NAME fossapps/$SERVICE_NAME:$TAG
49+
docker push fossapps/$SERVICE_NAME:$TAG
50+
run-postman-tests:
51+
needs: build-docker-image
52+
runs-on: ubuntu-latest
53+
54+
steps:
55+
- name: Pull Docker Image
56+
uses: actions/checkout@v1
57+
with:
58+
name: docker-pull
59+
60+
- name: 'Load Docker Image'
61+
run: |
62+
TAG=`git rev-parse --short=4 ${GITHUB_SHA}`
63+
docker pull fossapps/$SERVICE_NAME:$TAG
64+
- name: Spin-up Containers
65+
run: |
66+
TAG=`git rev-parse --short=4 ${GITHUB_SHA}`
67+
TAG=$TAG docker-compose -f ./docker-compose.ci.yml up -d
68+
- name: Run Postman Tests
69+
run: |
70+
cd ./${SERVICE_NAME_CAPITALIZED}.UnitTest/ExternalTests
71+
sh ./postman_tests.sh
72+
73+
publish:
74+
needs: [ build-docker-image, run-postman-tests ]
75+
runs-on: ubuntu-latest
76+
77+
steps:
78+
- name: Checkout
79+
uses: actions/checkout@v1
80+
- name: Semantic Release
81+
uses: cycjimmy/semantic-release-action@v2
82+
env:
83+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
84+
DOCKERHUB_LOGIN: ${{secrets.DOCKERHUB_LOGIN}}
85+
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
86+
with:
87+
extra_plugins: |
88+
@semantic-release/[email protected]
89+
@semantic-release/[email protected]
90+
@semantic-release/[email protected]

.github/workflows/stale.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "0 * * * *"
6+
7+
jobs:
8+
stale:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/stale@v1
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
stale-issue-message: 'Stale issue message'
17+
stale-pr-message: 'Stale pull request message'
18+
stale-issue-label: 'no-issue-activity'
19+
stale-pr-label: 'no-pr-activity'

.gitignore

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
[Bb]uild
2+
[Dd]ebug/
3+
[Dd]ebugPublic/
4+
[Rr]elease/
5+
[Rr]eleases/
6+
x64/
7+
x86/
8+
[Aa][Rr][Mm]/
9+
[Aa][Rr][Mm]64/
10+
bld/
11+
[Bb]in/
12+
[Oo]bj/
13+
[Ll]og/
14+
appsettings.Development.json
15+
appsettings.Production.json
16+
*.DS_STORE
17+
[Tt]humbs.db
18+
19+
*.user
20+
*.suo
21+
*.exe
22+
*.pdb
23+
*.aps
24+
*_i.c
25+
*_p.c
26+
*.ncb
27+
*.tlb
28+
*.tlh
29+
*.[Cc]ache
30+
*.bak
31+
*.ncb
32+
*.ilk
33+
*.log
34+
*.lib
35+
*.sbr
36+
*.sdf
37+
ipch/
38+
*.dbmdl
39+
*.cache
40+
*.swp
41+
*.vspscc
42+
*.vssscc
43+
*.bak.*
44+
*.bak
45+
46+
# tools
47+
_ReSharper.*
48+
_Resharper*/
49+
*.resharper
50+
*.resharper.user
51+
[Nn][Dd]epend[Oo]ut*/
52+
53+
54+
.idea/**/workspace.xml
55+
.idea/**/tasks.xml
56+
.idea/**/usage.statistics.xml
57+
.idea/**/dictionaries
58+
.idea/**/shelf
59+
.idea/**/contentModel.xml
60+
.idea/**/vcs.xml
61+
.idea/**/module.xml
62+
.idea/**/misc.xml

.idea/.idea.Micro.Starter/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)