Skip to content

Commit 8b24424

Browse files
Initial version
1 parent 7a34ab0 commit 8b24424

39 files changed

+2237
-2
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[*.cs]
2+
3+
### StyleCop
4+
5+
# SA1600: Elements should be documented
6+
dotnet_diagnostic.SA1600.severity = none
7+
8+
# SA1601: Partial elements should be documented
9+
dotnet_diagnostic.SA1601.severity = none
10+
11+
# SA1602: Enumeration items should be documented
12+
dotnet_diagnostic.SA1602.severity = none
13+
14+
### Visual Studio
15+
16+
# IDE0130: Namespace does not match folder structure
17+
dotnet_diagnostic.IDE0130.severity = none
18+
19+
# IDE0290: Use primary constructor
20+
dotnet_diagnostic.IDE0290.severity = none
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Continuous Integration
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
push:
7+
branches: [ "releases/**" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup .NET 8.x
16+
uses: actions/setup-dotnet@v3
17+
with:
18+
dotnet-version: '8.x'
19+
20+
- name: Build
21+
run: dotnet build --property:Configuration=Debug "PosInformatique.Testing.Azure.Functions.sln"
22+
23+
- name: Test with the dotnet CLI
24+
run: dotnet test --property:Configuration=Debug "PosInformatique.Testing.Azure.Functions.sln"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
VersionPrefix:
7+
type: string
8+
description: The version of the library
9+
required: true
10+
default: 0.1.0
11+
VersionSuffix:
12+
type: string
13+
description: The version suffix of the library (for example rc.1)
14+
15+
run-name: ${{ inputs.VersionPrefix }}-${{ inputs.VersionSuffix }}
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Setup .NET 8.x
24+
uses: actions/setup-dotnet@v3
25+
with:
26+
dotnet-version: '8.x'
27+
28+
- name: Build
29+
run: dotnet pack
30+
--property:Configuration=Release
31+
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }}
32+
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }}
33+
"src/Testing.Azure.Functions.Http/Testing.Azure.Functions.Http.csproj"
34+
35+
- name: Publish the package to nuget.org
36+
run: dotnet nuget push "src/Testing.Azure.Functions.Http/bin/Release/*.nupkg" --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)