Skip to content

Commit 5983b3f

Browse files
author
Urs Muntwyler
committed
Merge branch 'release/1.1.0'
2 parents e943cad + 3889b4c commit 5983b3f

42 files changed

Lines changed: 593 additions & 1054 deletions

Some content is hidden

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

.appveyor.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These owners will be the default owners for everything in the repo and
22
# will be requested for review when someone opens a pull request.
3-
* @Speeedy01 @marco-bertschi @pascalberger @christianbumann @x-jokay @silanosa @georgesgoetz
3+
* @bbtsoftware/dev-services @bbtsoftware/bbtl

.github/codecov.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
informational: true
6+
patch:
7+
default:
8+
informational: true

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: nuget
4+
directory: "/src"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/workflows/dotnet.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This workflow will build BBT.StrategyPattern project
2+
3+
name: CI
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
- develop
10+
pull_request:
11+
branches:
12+
- master
13+
- develop
14+
15+
defaults:
16+
run:
17+
working-directory: src
18+
19+
jobs:
20+
build:
21+
env:
22+
BUILD_CONFIG: "Debug"
23+
24+
runs-on: ${{ matrix.os }}
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest]
28+
29+
steps:
30+
- uses: actions/checkout@v3
31+
32+
- name: Get Build Version
33+
run: |
34+
Import-Module ..\build\GetBuildVersion.psm1
35+
Write-Host $Env:GITHUB_REF
36+
$version = GetBuildVersion -VersionString $Env:GITHUB_REF
37+
echo "BUILD_VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
38+
shell: pwsh
39+
40+
- name: Setup .NET
41+
uses: actions/setup-dotnet@v3
42+
with:
43+
dotnet-version: 6.0.x
44+
45+
- name: Restore dependencies
46+
run: dotnet restore
47+
48+
- name: Build
49+
run: dotnet build --configuration $BUILD_CONFIG -p:Version=$BUILD_VERSION --no-restore
50+
51+
- name: Test
52+
run: dotnet test -p:Configuration=$BUILD_CONFIG --no-restore --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
53+
54+
- name: Codecov
55+
uses: codecov/codecov-action@v3

.github/workflows/release.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# This workflow will release BBT.StrategyPattern project
2+
3+
name: Release
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
defaults:
10+
run:
11+
working-directory: src
12+
13+
jobs:
14+
build:
15+
env:
16+
BUILD_CONFIG: "Release"
17+
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
matrix:
21+
os: [ubuntu-latest]
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
26+
- name: Get Build Version
27+
run: |
28+
Import-Module ..\build\GetBuildVersion.psm1
29+
Write-Host $Env:GITHUB_REF
30+
$version = GetBuildVersion -VersionString $Env:GITHUB_REF
31+
echo "BUILD_VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
32+
shell: pwsh
33+
34+
- name: Setup .NET
35+
uses: actions/setup-dotnet@v3
36+
with:
37+
dotnet-version: 6.0.x
38+
39+
- name: Restore dependencies
40+
run: dotnet restore
41+
42+
- name: Build
43+
run: dotnet build --configuration $BUILD_CONFIG -p:Version=$BUILD_VERSION --no-restore
44+
45+
- name: Test
46+
run: dotnet test -p:Configuration=$BUILD_CONFIG --no-restore --no-build --verbosity normal --collect:"XPlat Code Coverage"
47+
48+
- name: Codecov
49+
uses: codecov/codecov-action@v1.5.2
50+
51+
- name: Setup NuGet
52+
uses: NuGet/setup-nuget@v1
53+
54+
- name: Package NuGet
55+
run: nuget pack ../nuspec/nuget/*.nuspec
56+
57+
- name: Publish NuGet
58+
run: nuget push ./*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGETORG}}

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,6 @@ paket-files/
298298
__pycache__/
299299
*.pyc
300300

301-
# Cake - Uncomment if you are using it
302-
tools/**
303-
!tools/packages.config
304-
305301
# Tabs Studio
306302
*.tss
307303

@@ -330,6 +326,3 @@ ASALocalRun/
330326
.mfractor/
331327

332328
# Project specific
333-
334-
config.wyam.*
335-
BuildArtifacts/

.vscode/tasks.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/src/BBT.StrategyPattern.sln",
11+
"/property:GenerateFullPaths=true",
12+
"/consoleloggerparameters:NoSummary"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/src/BBT.StrategyPattern.sln",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"--project",
36+
"${workspaceFolder}/src/BBT.StrategyPattern.sln"
37+
],
38+
"problemMatcher": "$msCompile"
39+
}
40+
]
41+
}

GitReleaseManager.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
# BBT.StrategyPattern
22

3+
[![NuGet](https://img.shields.io/nuget/v/BBT.StrategyPattern.svg)](https://www.nuget.org/packages/BBT.StrategyPattern)
4+
[![Build status](https://github.com/bbtsoftware/BBT.StrategyPattern/actions/workflows/dotnet.yml/badge.svg?branch=develop)](https://github.com/bbtsoftware/BBT.StrategyPattern/actions/workflows/dotnet.yml)
5+
[![Build status](https://github.com/bbtsoftware/BBT.StrategyPattern/actions/workflows/release.yml/badge.svg)](https://github.com/bbtsoftware/BBT.StrategyPattern/actions/workflows/release.yml)
6+
[![Coverage Status](https://codecov.io/gh/bbtsoftware/BBT.StrategyPattern/branch/develop/graph/badge.svg?token=0VLbB8a8EF)](https://codecov.io/gh/bbtsoftware/BBT.StrategyPattern)
7+
38
An strategy pattern implementation for .NET.
49

510
[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/bbtsoftware/BBT.StrategyPattern/blob/master/LICENSE)
611

7-
## Information
8-
9-
| | Stable | Pre-release |
10-
|:--:|:--:|:--:|
11-
|GitHub Release|-|[![GitHub release](https://img.shields.io/github/release/bbtsoftware/BBT.StrategyPattern.svg)](https://github.com/bbtsoftware/BBT.StrategyPattern/releases/latest)|
12-
|NuGet|[![NuGet](https://img.shields.io/nuget/v/BBT.StrategyPattern.svg)](https://www.nuget.org/packages/BBT.StrategyPattern)|[![NuGet](https://img.shields.io/nuget/vpre/BBT.StrategyPattern.svg)](https://www.nuget.org/packages/BBT.StrategyPattern)|
12+
## Documentation
1313

14-
## Build Status
14+
### Getting started
1515

16-
|Develop|Master|
17-
|:--:|:--:|
18-
|[![Build status](https://ci.appveyor.com/api/projects/status/bncb5oc7ah2ti95y/branch/develop?svg=true)](https://ci.appveyor.com/project/BBTSoftwareAG/bbt-strategypattern/branch/develop)|[![Build status](https://ci.appveyor.com/api/projects/status/bncb5oc7ah2ti95y/branch/master?svg=true)](https://ci.appveyor.com/project/BBTSoftwareAG/bbt-strategypattern/branch/master)|
16+
Overview about the features of BBT.StrategyPattern.
1917

20-
## Code Coverage
18+
* [Why does BBT.StrategyPattern exist?](./docs/getting-started/whystrategypattern.md)
19+
* [Core principles](./docs/getting-started/principles.md)
20+
* [Fundamentals](./docs/getting-started/fundamentals.md)
2121

22-
[![Coverage Status](https://coveralls.io/repos/github/bbtsoftware/BBT.StrategyPattern/badge.svg?branch=develop)](https://coveralls.io/github/bbtsoftware/BBT.StrategyPattern?branch=develop)
22+
### Usage
2323

24-
## Quick Links
24+
How to obtain, configure, and use BBT.StrategyPattern.
2525

26-
* [Documentation](https://bbtsoftware.github.io/BBT.StrategyPattern/)
26+
* [Obtain](./docs/usage/obtain.md)
27+
* [Use with IoC](./docs/usage/use-with-ioc.md)
28+
* [Use without IoC](./docs/usage/use-without-ioc.md)
2729

2830
## Build
2931

30-
To build this package we are using [Cake](https://cakebuild.net).
31-
3232
On Windows PowerShell run:
3333

3434
```powershell
35-
./build
35+
`dotnet build .\src\BBT.StrategyPattern.sln`
3636
```

0 commit comments

Comments
 (0)