File tree Expand file tree Collapse file tree 5 files changed +91
-5
lines changed
KeywordEngine.Sample/Tests Expand file tree Collapse file tree 5 files changed +91
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : build and test
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ types : [opened, synchronize, reopened]
8
+
9
+ env :
10
+ DOTNET_VERSION : ' 7.0.x' # The .NET SDK version to use
11
+
12
+ jobs :
13
+ build-and-test :
14
+
15
+ name : build-and-test-${{matrix.os}}
16
+ runs-on : ${{ matrix.os }}
17
+ strategy :
18
+ matrix :
19
+ os : [ubuntu-latest, windows-latest]
20
+
21
+ steps :
22
+ - uses : actions/checkout@v3
23
+ - name : Setup .NET Core
24
+ uses : actions/setup-dotnet@v3
25
+ with :
26
+ dotnet-version : ${{ env.DOTNET_VERSION }}
27
+
28
+ - name : Install dependencies
29
+ run : dotnet restore
30
+ working-directory : src
31
+
32
+ - name : Build
33
+ run : dotnet build --configuration Release --no-restore
34
+ working-directory : src
35
+
36
+ - name : Test
37
+ run : dotnet test --no-restore --verbosity normal
38
+ working-directory : src
Original file line number Diff line number Diff line change
1
+ name : Build, Pack and Publish
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
14
+ - name : Setup .NET Core
15
+ uses : actions/setup-dotnet@v1
16
+ with :
17
+ dotnet-version : 7.0.x
18
+ - name : Install dependencies
19
+ run : dotnet restore
20
+ working-directory : src
21
+ - name : Build
22
+ run : dotnet build --configuration Release --no-restore
23
+ working-directory : src
24
+ - name : Pack
25
+ run : dotnet pack KeywordEngine/KeywordEngine.csproj --configuration Release --no-build --output nupkgs
26
+ working-directory : src
27
+ - name : Publish
28
+ run : dotnet nuget push nupkgs/*.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
29
+ working-directory : src
Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Text ;
5
- using System . Threading . Tasks ;
6
2
using KeywordEngine . Test . Helpers ;
7
3
8
4
namespace KeywordEngine . Test . Tests ;
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net6.0</ TargetFramework >
4
+ <TargetFrameworks >net6.0;net7.0</ TargetFrameworks >
5
5
<ImplicitUsings >enable</ImplicitUsings >
6
6
<Nullable >enable</Nullable >
7
+ <VersionPrefix >1.0.0</VersionPrefix >
8
+ <SignAssembly >True</SignAssembly >
9
+ <GeneratePackageOnBuild >True</GeneratePackageOnBuild >
10
+ <Title >KeywordEngine</Title >
11
+ <Description >Keyword driven framework execution engine.</Description >
12
+ <PackageProjectUrl >https://github.com/VikashChauhan51/keyword-engine</PackageProjectUrl >
13
+ <Authors >VikashChauhan51</Authors >
14
+ <Copyright >Copyright © VikashChauhan51, 2023</Copyright >
15
+ <RepositoryUrl >https://github.com/VikashChauhan51/keyword-engine</RepositoryUrl >
16
+ <PackageTags >keyword-driven-framework;keyword-driven-framework-engine;keyword-driven-engine;keyword-engine;testing-framework-engine;testing-framework;testing-tool;automation-testing</PackageTags >
17
+ <PackageReadmeFile >README.md</PackageReadmeFile >
18
+ <AssemblyOriginatorKeyFile >..\KeywordEngine.snk</AssemblyOriginatorKeyFile >
19
+ <RepositoryType >git</RepositoryType >
20
+ <ProjectGuid >{72219BBE-A7AE-4D69-B255-CB95AE255955}</ProjectGuid >
21
+ <PackageLicenseExpression >MIT</PackageLicenseExpression >
22
+ <PackageRequireLicenseAcceptance >True</PackageRequireLicenseAcceptance >
7
23
</PropertyGroup >
8
24
25
+ <ItemGroup >
26
+ <None Include =" ..\..\README.md" >
27
+ <Pack >True</Pack >
28
+ <PackagePath >\</PackagePath >
29
+ </None >
30
+ </ItemGroup >
31
+
9
32
</Project >
You can’t perform that action at this time.
0 commit comments