Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit 21f6647

Browse files
committed
Merge branch 'develop' into main
2 parents 667a569 + 9db91ed commit 21f6647

File tree

68 files changed

+2341
-32
lines changed

Some content is hidden

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

68 files changed

+2341
-32
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: ['https://www.paypal.me/newbe36524'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/main.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Claptrap build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
- feature/ci
9+
- feature/ut
10+
11+
pull_request:
12+
branches:
13+
- master
14+
- develop
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
container: mcr.microsoft.com/dotnet/core/sdk:3.1.301-bionic
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
# Disabling shallow clone is recommended for improving relevancy of reporting
25+
fetch-depth: 0
26+
- name: Install dependencies
27+
run: |
28+
cd $GITHUB_WORKSPACE/src
29+
dotnet restore
30+
- name: Sonarscanner for dotnet
31+
uses: Secbyte/[email protected]
32+
with:
33+
buildCommand: dotnet build $GITHUB_WORKSPACE/src --configuration Release
34+
testCommand: dotnet test $GITHUB_WORKSPACE/src --configuration Release -l "console;verbosity=detailed" --collect:"XPlat Code Coverage" --settings $GITHUB_WORKSPACE/src/coverlet.runsettings -- NUnit.Where="namespace =~ ^Newbe"
35+
projectKey: newbe36524_Newbe.Claptrap
36+
projectName: Newbe.Claptrap
37+
sonarOrganisation: newbe36524
38+
beginArguments: >
39+
/d:sonar.cs.opencover.reportsPaths='"src/*.Tests/TestResults/*/coverage.opencover.xml"'
40+
env:
41+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
Claptrap__RabbitMQ__Uri: amqp://guest:guest@rabbitmq:5672/%2f
44+
- name: Codecov
45+
uses: codecov/[email protected]
46+
# with:
47+
# # User defined upload name. Visible in Codecov UI
48+
# name: # optional
49+
# # Repository upload token - get it from codecov.io. Required only for private repositories
50+
# token: # optional
51+
# # Path to coverage file to upload
52+
# file: # optional
53+
# # Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)
54+
# flags: # optional
55+
# # Specify whether or not CI build should fail if Codecov runs into an error during upload
56+
# fail_ci_if_error: # optional
57+
58+
- name: Codacy Coverage Reporter
59+
uses: codacy/[email protected]
60+
with:
61+
# Project token for the Codacy project you want to send coverage information
62+
project-token: ${{ secrets.CODACY_TOKEN }}
63+
# Optional comma separated list of coverage reports to send to Codacy
64+
coverage-reports: src/*.Tests/TestResults/*/coverage.opencover.xml # optional, default is
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish dev nuget package to azure
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- feature/ci
8+
- feature/ut
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
18+
19+
- name: Setup .NET Core
20+
uses: actions/setup-dotnet@v1
21+
with:
22+
dotnet-version: 5.0.100-rc.2.20479.15
23+
source-url: https://nuget.pkg.github.com/newbe36524/index.json
24+
env:
25+
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
27+
- uses: aarnott/[email protected]
28+
with:
29+
setAllVars: true
30+
31+
- run: echo "NBGV_SemVer2 $ENV:NBGV_SemVer2"
32+
33+
- name: pack
34+
run: |
35+
cd $ENV:GITHUB_WORKSPACE/src
36+
mkdir pkgs
37+
dotnet pack --configuration Release -o ./pkgs -p:PackageVersion=$ENV:NBGV_SemVer2
38+
39+
- name: Push nuget package to Azure storage
40+
env:
41+
SLEET_FEED_TYPE: azure
42+
SLEET_FEED_CONTAINER: feed
43+
SLEET_FEED_CONNECTIONSTRING: ${{secrets.SLEET_CONNECTIONSTRING}}
44+
run: |
45+
cd $ENV:GITHUB_WORKSPACE/src
46+
dotnet tool install -g sleet
47+
sleet push ./pkgs --skip-existing
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish dev nuget package to MyGet
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
16+
17+
- name: Setup .NET Core
18+
uses: actions/setup-dotnet@v1
19+
with:
20+
dotnet-version: 5.0.100-rc.2.20479.15
21+
22+
- uses: aarnott/[email protected]
23+
with:
24+
setAllVars: true
25+
26+
- run: echo "NBGV_SemVer2 $ENV:NBGV_SemVer2"
27+
28+
- name: pack
29+
run: |
30+
cd $ENV:GITHUB_WORKSPACE/src
31+
dotnet pack --configuration Release -o . -p:PackageVersion=$ENV:NBGV_SemVer2
32+
33+
- name: Push nuget package to MyGet registry
34+
run: |
35+
cd $ENV:GITHUB_WORKSPACE/src
36+
dotnet nuget push **/*.nupkg --api-key ${{ secrets.MYGET_TOKEN }} --no-symbols --skip-duplicate --source https://www.myget.org/F/newbe36524/api/v3/index.json
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish dev nuget package to nuget.org
2+
3+
on:
4+
push:
5+
branches:
6+
- v*
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
16+
17+
- name: Setup .NET Core
18+
uses: actions/setup-dotnet@v1
19+
with:
20+
dotnet-version: 5.0.100-rc.2.20479.15
21+
22+
- uses: aarnott/[email protected]
23+
with:
24+
setAllVars: true
25+
26+
- run: echo "NBGV_SemVer2 $ENV:NBGV_SemVer2"
27+
28+
- name: pack
29+
run: |
30+
cd $ENV:GITHUB_WORKSPACE/src
31+
dotnet pack --configuration Release -o . -p:PackageVersion=$ENV:NBGV_SemVer2
32+
33+
- name: Push nuget package to nuget.org registry
34+
run: |
35+
cd $GITHUB_WORKSPACE/src
36+
dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --no-symbols --skip-duplicate --source https://api.nuget.org/v3/index.json

Directory.Build.props

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<PackageReference Include="Nerdbank.GitVersioning">
5+
<Version>3.3.37</Version>
6+
<PrivateAssets>all</PrivateAssets>
7+
</PackageReference>
8+
</ItemGroup>
9+
</Project>

0 commit comments

Comments
 (0)