Skip to content

Commit 72c0254

Browse files
updated unit test to .net6 (#6)
* Update TinCanTests to .net6 Update TinCanTests to .net6 * Enabled test cases in release * Update TinCan version * Update README.md related to new GitHub action Update README.md related to new GitHub action
1 parent b694695 commit 72c0254

4 files changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
uses: actions/setup-dotnet@v1
1616
- name: Build
1717
run: dotnet build -c Release
18-
#- name: Test
19-
# run: dotnet test -c Release --no-build
18+
- name: Test
19+
run: dotnet test -c Release --no-build
2020
- name: Pack nugets
2121
run: dotnet pack -c Release --no-build --output .
2222
- name: Push to NuGet

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Modifications done by Neal Daniel (njvsvalhalla):
2222
Changes done by Mayur Agarwal (myself):
2323
* Fix for Group object type value. (If we use group in xAPI statement, it fails because of wrong object type value)
2424
* Merged all changes from original TinCan.NET repository upto Release 1.3.0.0
25+
* Added GitHub action to publish to Nuget feed
2526

2627
# Parent Project
2728

@@ -33,6 +34,15 @@ http://rusticisoftware.github.io/TinCan.NET/
3334
For more information about the Tin Can API visit:
3435
http://tincanapi.com/
3536

37+
# Generating new release and Nuget package
38+
In Tincan.csproj file change the version number to the new release version.
39+
Merge the pull request with your changes.
40+
Using GitHub desktop create tag with release version on your merge commit and push the tag.
41+
Then create release with new tag on GitHub website and publish.
42+
GitHub action will automatically trigger a new release which will push the Nuget package to that Nuget feed.
43+
Note that we have nuget API token saved in GitHub repositories secrets which is valid for 1 year and should renew after expiry for GitHub action to work.
44+
To generate new token if expires please contact Mayur or transfer the release to new Nuget feed.
45+
3646
# Installation
3747

3848
Include the TinCan folder in your project and reference the project.

TinCan/TinCan.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<Version>1.3.3.3</Version>
5+
<Version>1.3.3.5</Version>
66
<PackageId>TinCanStandard</PackageId>
77
<Product>TinCanStandard</Product>
88
<Title>TinCanCore</Title>
@@ -11,8 +11,8 @@
1111
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1212
<RepositoryUrl>https://github.com/mayuragarwal-qm/TinCan.NET</RepositoryUrl>
1313
<RepositoryType>git</RepositoryType>
14-
<AssemblyVersion>1.3.3.3</AssemblyVersion>
15-
<FileVersion>1.3.3.3</FileVersion>
14+
<AssemblyVersion>1.3.3.5</AssemblyVersion>
15+
<FileVersion>1.3.3.5</FileVersion>
1616
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
1717
</PropertyGroup>
1818

TinCanTests/TinCanTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp3.1</TargetFramework>
3+
<TargetFramework>net6.0</TargetFramework>
44
</PropertyGroup>
55
<ItemGroup>
66
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
@@ -11,4 +11,4 @@
1111
<ItemGroup>
1212
<ProjectReference Include="..\TinCan\TinCan.csproj" />
1313
</ItemGroup>
14-
</Project>
14+
</Project>

0 commit comments

Comments
 (0)