Skip to content

Commit 065b98e

Browse files
authored
Merge pull request #7 from ForEvolve/v3.0
v3.0
2 parents 929fe24 + fb178e8 commit 065b98e

File tree

161 files changed

+2335
-2941
lines changed

Some content is hidden

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

161 files changed

+2335
-2941
lines changed

.github/workflows/master.yml

Lines changed: 62 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,80 @@
11
name: Build, Test, and Deploy
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
paths-ignore:
8-
- 'samples/**'
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- 'samples/**'
99

10-
pull_request:
11-
branches:
12-
- master
10+
pull_request:
11+
branches:
12+
- master
1313

14-
workflow_dispatch:
15-
inputs:
16-
deployToFeedz:
17-
description: 'Deploy the libraries to feedz.io'
18-
required: false
19-
default: 'false'
20-
deployToNuGet:
21-
description: 'Deploy the libraries to NuGet.org'
22-
required: false
23-
default: 'false'
14+
workflow_dispatch:
15+
inputs:
16+
deployToFeedz:
17+
description: 'Deploy the libraries to feedz.io'
18+
required: false
19+
default: 'false'
20+
deployToNuGet:
21+
description: 'Deploy the libraries to NuGet.org'
22+
required: false
23+
default: 'false'
2424

2525
env:
26-
BUILD_CONFIGURATION: Release
27-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
26+
BUILD_CONFIGURATION: Release
27+
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true
2828

2929
jobs:
30-
build-and-test:
31-
runs-on: ubuntu-latest
32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
dotnet: ['6.0.x']
30+
build-and-test:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v3
34+
with:
35+
fetch-depth: 0
3636

37-
steps:
38-
- uses: actions/checkout@v1
37+
- name: Setup .NET Core
38+
uses: actions/setup-dotnet@v3
39+
with:
40+
dotnet-version: |
41+
6.x
42+
7.x
43+
8.x
3944
40-
- name: Setup .NET Core
41-
uses: actions/setup-dotnet@v1
42-
with:
43-
dotnet-version: ${{ matrix.dotnet }}
45+
- name: Build
46+
run: dotnet build -c ${{ env.BUILD_CONFIGURATION }}
4447

45-
- name: Build
46-
run: dotnet build --configuration ${{ env.BUILD_CONFIGURATION }}
48+
- name: Unit Test
49+
run: dotnet test -c ${{ env.BUILD_CONFIGURATION }}
4750

48-
- name: Unit Test
49-
if: github.event_name == 'impossible'
50-
run: dotnet test --configuration ${{ env.BUILD_CONFIGURATION }}
51+
deploy:
52+
runs-on: ubuntu-latest
53+
needs: build-and-test
54+
steps:
55+
- uses: actions/checkout@v3
56+
with:
57+
fetch-depth: 0
5158

52-
deploy:
53-
runs-on: ubuntu-latest
54-
needs: build-and-test
55-
strategy:
56-
matrix:
57-
dotnet: ['6.0.x']
58-
steps:
59-
- uses: actions/checkout@v1
59+
- name: Setup .NET Core
60+
uses: actions/setup-dotnet@v3
61+
with:
62+
dotnet-version: |
63+
6.x
64+
7.x
65+
8.x
6066
61-
- name: Setup .NET Core
62-
uses: actions/setup-dotnet@v1
63-
with:
64-
dotnet-version: ${{ matrix.dotnet }}
67+
- uses: dotnet/nbgv@master
68+
with:
69+
setAllVars: true
6570

66-
- uses: aarnott/[email protected]
67-
with:
68-
setAllVars: true
71+
- name: Pack
72+
run: dotnet pack -c ${{ env.BUILD_CONFIGURATION }}
6973

70-
- name: Pack
71-
run: dotnet pack --configuration ${{ env.BUILD_CONFIGURATION }}
74+
- name: Push to feedz.io
75+
run: dotnet nuget push **/*.nupkg -k ${{ secrets.FEEDZ_API_KEY }} -s https://f.feedz.io/forevolve/exception-mapper/nuget/index.json
76+
if: ${{ github.event.inputs.deployToFeedz == 'true' || github.event_name == 'pull_request' }}
7277

73-
- name: Push to feedz.io
74-
run: dotnet nuget push **/*.nupkg -k ${{ secrets.FEEDZ_API_KEY }} -s https://f.feedz.io/forevolve/exception-mapper/nuget/index.json
75-
if: ${{ github.event.inputs.deployToFeedz == 'true' || github.event_name == 'pull_request' }}
76-
77-
- name: Push to NuGet.org
78-
run: dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
79-
if: ${{ github.event.inputs.deployToNuGet == 'true' || github.event_name == 'push' }}
78+
- name: Push to NuGet.org
79+
run: dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
80+
if: ${{ github.event.inputs.deployToNuGet == 'true' || github.event_name == 'push' }}

.prettierrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
"singleQuote": true,
66
"overrides": [
77
{
8-
"files": ["*.yaml"],
8+
"files": [
9+
"*.yaml",
10+
"*.yml"
11+
],
912
"options": {
1013
"tabWidth": 2
1114
}
1215
}
1316
]
14-
}
17+
}

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<RepositoryType>git</RepositoryType>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
88
<LangVersion>Latest</LangVersion>
9+
<FETargetFrameworks>net6.0;net7.0;net8.0</FETargetFrameworks>
10+
<FETestsTargetFrameworks>$(FETargetFrameworks)</FETestsTargetFrameworks>
911
</PropertyGroup>
1012

1113
</Project>

0 commit comments

Comments
 (0)