File tree 7 files changed +86
-3
lines changed
src/StackExchange.Utils.Http
tests/StackExchange.Utils.Tests
7 files changed +86
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Build & Test
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ paths-ignore :
8
+ - ' docs/**' # Don't run workflow when files are only in the /docs directory
9
+
10
+ jobs :
11
+ build-ubuntu :
12
+ runs-on : ubuntu-latest
13
+ if : " !contains(github.event.head_commit.message, 'ci skip')"
14
+ steps :
15
+ - name : Checkout code
16
+ uses : actions/checkout@v2
17
+ with :
18
+ fetch-depth : 0
19
+ - name : .NET Build
20
+ run : dotnet build Build.csproj -c Release --nologo /p:CI=true
21
+ - name : .NET Test
22
+ run : dotnet test Build.csproj -c Release --no-build --nologo /p:CI=true
23
+ build-windows :
24
+ runs-on : windows-latest
25
+ if : " !contains(github.event.head_commit.message, 'ci skip')"
26
+ steps :
27
+ - name : Checkout code
28
+ uses : actions/checkout@v2
29
+ with :
30
+ fetch-depth : 0
31
+ - name : .NET Build
32
+ run : dotnet build Build.csproj -c Release --nologo /p:CI=true
33
+ - name : .NET Test
34
+ run : dotnet test Build.csproj -c Release --no-build --nologo /p:CI=true
Original file line number Diff line number Diff line change
1
+ name : Build, Test & Package
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ paths-ignore :
8
+ - ' docs/**' # Don't run workflow when files are only in the /docs directory
9
+
10
+ jobs :
11
+ build-ubuntu :
12
+ runs-on : ubuntu-latest
13
+ if : " !contains(github.event.head_commit.message, 'ci skip')"
14
+ steps :
15
+ - name : Checkout code
16
+ uses : actions/checkout@v2
17
+ with :
18
+ fetch-depth : 0
19
+ - name : .NET Build
20
+ run : dotnet build Build.csproj -c Release --nologo /p:CI=true
21
+ - name : .NET Test
22
+ run : dotnet test Build.csproj -c Release --no-build --nologo /p:CI=true
23
+ build-windows :
24
+ needs : build-ubuntu
25
+ runs-on : windows-latest
26
+ if : " !contains(github.event.head_commit.message, 'ci skip')"
27
+ steps :
28
+ - name : Checkout code
29
+ uses : actions/checkout@v2
30
+ with :
31
+ fetch-depth : 0
32
+ - name : .NET Build
33
+ run : dotnet build Build.csproj -c Release --nologo /p:CI=true
34
+ - name : .NET Test
35
+ run : dotnet test Build.csproj -c Release --no-build --nologo /p:CI=true
36
+ - name : .NET Pack
37
+ run : dotnet pack Build.csproj --no-build -c Release --nologo /p:PackageOutputPath=${env:GITHUB_WORKSPACE}\.nupkgs /p:CI=true
38
+ - name : Push to MyGet
39
+ run : dotnet nuget push ${env:GITHUB_WORKSPACE}\.nupkgs\*.nupkg -s https://www.myget.org/F/stackoverflow/api/v2/package -k ${{ secrets.MYGET_API_KEY }}
Original file line number Diff line number Diff line change 4
4
* .suo
5
5
* .user
6
6
* .nupkgs
7
+ .idea /*
7
8
.vs /*
9
+ .DS_Store
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.Build.Traversal/2.0.24" >
2
+ <ItemGroup >
3
+ <ProjectReference Include =" src\**\*.csproj" />
4
+ <ProjectReference Include =" samples\**\*.csproj" />
5
+ <ProjectReference Include =" tests\**\*.csproj" />
6
+ </ItemGroup >
7
+ </Project >
Original file line number Diff line number Diff line change 1
1
{
2
2
"sdk" : {
3
- "version" : " 3.1.201 " ,
4
- "rollForward" : " latestMajor " ,
3
+ "version" : " 3.1.300 " ,
4
+ "rollForward" : " latestMinor " ,
5
5
"allowPrerelease" : false
6
6
}
7
7
}
Original file line number Diff line number Diff line change 14
14
<PackageReference Include =" Jil" Version =" 2.17.0" />
15
15
<PackageReference Include =" protobuf-net" Version =" 2.4.1" />
16
16
<PackageReference Include =" System.Collections.Immutable" Version =" 1.5.0" />
17
+ <PackageReference Include =" Microsoft.NETFramework.ReferenceAssemblies" Version =" 1.0.0" PrivateAssets =" all" IncludeAssets =" runtime;build;native;contentfiles;analyzers" />
17
18
18
19
<Compile Update =" Extensions.*.cs" DependentUpon =" Extensions.cs" />
19
20
</ItemGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFrameworks >netcoreapp2.2; netcoreapp3.1</TargetFrameworks >
3
+ <TargetFrameworks >netcoreapp3.1</TargetFrameworks >
4
4
</PropertyGroup >
5
5
<ItemGroup >
6
6
<ProjectReference Include =" ../../src/StackExchange.Utils.Http/StackExchange.Utils.Http.csproj" />
You can’t perform that action at this time.
0 commit comments