File tree Expand file tree Collapse file tree 6 files changed +30
-18
lines changed
src/Azure.WebJobs.Extensions.HttpApi Expand file tree Collapse file tree 6 files changed +30
-18
lines changed Original file line number Diff line number Diff line change 7
7
branches : [ master ]
8
8
9
9
env :
10
- DOTNET_VERSION : 3.1.x
10
+ DOTNET_VERSION : 6.0.x
11
+ DOTNETCORE_VERSION : 3.1.x
11
12
12
13
jobs :
13
14
build :
14
15
runs-on : ubuntu-latest
15
16
steps :
16
17
- uses : actions/checkout@v2
17
18
18
- - name : Use .NET Core ${{ env.DOTNET_VERSION }}
19
+ - name : Use .NET ${{ env.DOTNET_VERSION }}
19
20
uses : actions/setup-dotnet@v1
20
21
with :
21
22
dotnet-version : ${{ env.DOTNET_VERSION }}
23
+ include-prerelease : true
22
24
23
- - name : Install .NET Core format tool
25
+ - name : Use .NET Core ${{ env.DOTNETCORE_VERSION }}
26
+ uses : actions/setup-dotnet@v1
27
+ with :
28
+ dotnet-version : ${{ env.DOTNETCORE_VERSION }}
29
+
30
+ - name : Install .NET format tool
24
31
run : dotnet tool update -g dotnet-format
25
32
26
33
- name : Build project
27
34
run : dotnet build -c Release
28
35
29
36
- name : Lint C# code
30
- run : dotnet format --check --verbosity detailed
37
+ run : dotnet format --verify-no-changes --verbosity detailed --no-restore
Original file line number Diff line number Diff line change 5
5
tags : [ v* ]
6
6
7
7
env :
8
- DOTNET_VERSION : 3.1.x
8
+ DOTNET_VERSION : 6.0.x
9
+ DOTNETCORE_VERSION : 3.1.x
9
10
10
11
jobs :
11
12
publish :
12
13
runs-on : ubuntu-latest
13
14
steps :
14
15
- uses : actions/checkout@v2
15
16
16
- - name : Use .NET Core ${{ env.DOTNET_VERSION }}
17
+ - name : Use .NET ${{ env.DOTNET_VERSION }}
17
18
uses : actions/setup-dotnet@v1
18
19
with :
19
20
dotnet-version : ${{ env.DOTNET_VERSION }}
21
+ include-prerelease : true
22
+
23
+ - name : Use .NET Core ${{ env.DOTNETCORE_VERSION }}
24
+ uses : actions/setup-dotnet@v1
25
+ with :
26
+ dotnet-version : ${{ env.DOTNETCORE_VERSION }}
20
27
21
28
- name : Setup Version
22
29
id : setup_version
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
- <AzureFunctionsVersion >v3 </AzureFunctionsVersion >
3
+ <TargetFramework >net6.0 </TargetFramework >
4
+ <AzureFunctionsVersion >v4 </AzureFunctionsVersion >
5
5
</PropertyGroup >
6
6
<ItemGroup >
7
- <PackageReference Include =" Microsoft.NET.Sdk.Functions" Version =" 3 .0.13 " />
7
+ <PackageReference Include =" Microsoft.NET.Sdk.Functions" Version =" 4 .0.0 " />
8
8
</ItemGroup >
9
9
<ItemGroup >
10
10
<ProjectReference Include =" ..\..\src\Azure.WebJobs.Extensions.HttpApi\Azure.WebJobs.Extensions.HttpApi.csproj" />
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
- <AzureFunctionsVersion >v3 </AzureFunctionsVersion >
3
+ <TargetFramework >net6.0 </TargetFramework >
4
+ <AzureFunctionsVersion >v4 </AzureFunctionsVersion >
5
5
</PropertyGroup >
6
6
<ItemGroup >
7
- <PackageReference Include =" Microsoft.NET.Sdk.Functions" Version =" 3 .0.13 " />
7
+ <PackageReference Include =" Microsoft.NET.Sdk.Functions" Version =" 4 .0.0 " />
8
8
</ItemGroup >
9
9
<ItemGroup >
10
10
<ProjectReference Include =" ..\..\src\Azure.WebJobs.Extensions.HttpApi\Azure.WebJobs.Extensions.HttpApi.csproj" />
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework > netcoreapp3.1</TargetFramework >
4
+ <TargetFrameworks >net6.0; netcoreapp3.1</TargetFrameworks >
5
5
</PropertyGroup >
6
6
7
7
<PropertyGroup >
8
8
<Authors >shibayan</Authors >
9
+ <Description >HTTP API Extensions for Azure Functions</Description >
9
10
<PackageId >WebJobs.Extensions.HttpApi</PackageId >
10
- <Description >HTTP API Extensions for Azure Functions v3</Description >
11
11
<PackageReadmeFile >README.md</PackageReadmeFile >
12
12
<PackageReleaseNotes >https://github.com/shibayan/azure-functions-http-api/releases</PackageReleaseNotes >
13
13
<PackageLicenseExpression >MIT</PackageLicenseExpression >
Original file line number Diff line number Diff line change @@ -4,10 +4,8 @@ namespace Azure.WebJobs.Extensions.HttpApi
4
4
{
5
5
internal static class FunctionEnvironment
6
6
{
7
- public static bool IsAvailable
8
- => ! string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "WEBSITE_SITE_NAME" ) ) ;
7
+ public static bool IsAvailable => ! string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "WEBSITE_SITE_NAME" ) ) ;
9
8
10
- public static string RootPath
11
- => IsAvailable ? Environment . ExpandEnvironmentVariables ( $ "%HOME%/site/wwwroot") : Environment . CurrentDirectory ;
9
+ public static string RootPath => IsAvailable ? Environment . ExpandEnvironmentVariables ( $ "%HOME%/site/wwwroot") : Environment . CurrentDirectory ;
12
10
}
13
11
}
You can’t perform that action at this time.
0 commit comments