File tree Expand file tree Collapse file tree 4 files changed +18
-17
lines changed
test/Exceptionless.RandomData.Tests Expand file tree Collapse file tree 4 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- name : Checkout
9
- uses : actions/checkout@v1
9
+ uses : actions/checkout@v2
10
10
with :
11
11
fetch-depth : 0
12
12
- name : Setup .NET Core
13
13
uses : actions/setup-dotnet@v1
14
14
with :
15
- dotnet-version : 3.1.302
15
+ dotnet-version : 5.0.x
16
16
- name : Build Reason
17
17
run : " echo ref: ${{github.ref}} event: ${{github.event_name}}"
18
18
- name : Build Version
19
19
run : |
20
- dotnet tool install --global minver-cli --version 2.3 .0
20
+ dotnet tool install --global minver-cli --version 2.5 .0
21
21
version=$(minver --tag-prefix v)
22
- echo "::set-env name=MINVERVERSIONOVERRIDE::$version"
22
+ echo "MINVERVERSIONOVERRIDE=$version" >> $GITHUB_ENV
23
+ echo "VERSION=$version" >> $GITHUB_ENV
23
24
- name : Build
24
25
run : dotnet build --configuration Release
25
- - name : Start Services
26
- run : docker-compose up -d && docker-compose up ready
27
26
- name : Run Tests
28
27
run : dotnet test --configuration Release --no-build
29
28
- name : Package
37
36
run : |
38
37
for package in $(find -name "*.nupkg" | grep "minver" -v); do
39
38
echo "${0##*/}": Pushing $package...
40
-
39
+
41
40
# GitHub
42
41
gpr push $package -k ${{ secrets.GITHUB_TOKEN }} || true
43
42
Original file line number Diff line number Diff line change 1
1
# Exceptionless.RandomData
2
+
2
3
[ ![ Build status] ( https://github.com/Exceptionless/Exceptionless.RandomData/workflows/Build/badge.svg )] ( https://github.com/Exceptionless/Exceptionless.RandomData/actions )
3
4
[ ![ NuGet Version] ( http://img.shields.io/nuget/v/Exceptionless.RandomData.svg?style=flat )] ( https://www.nuget.org/packages/Exceptionless.RandomData/ )
4
- [ ![ Slack Status] ( https://slack.exceptionless.com/badge.svg )] ( https://slack.exceptionless.com )
5
+ [ ![ Discord] ( https://img.shields.io/discord/715744504891703319 )] ( https://discord.gg/6HxgFCx )
6
+ [ ![ Donate] ( https://img.shields.io/badge/donorbox-donate-blue.svg )] ( https://donorbox.org/exceptionless?recurring=true )
5
7
6
8
Utility class to easily generate random data. This makes generating good unit test data a breeze!
7
9
@@ -27,7 +29,7 @@ private enum _days {
27
29
int value = RandomData .GetInt (1 , 5 );
28
30
// or
29
31
value = _numbers .Random ();
30
-
32
+
31
33
var day = RandomData .GetEnum <_days >();
32
34
```
33
35
Original file line number Diff line number Diff line change 9
9
<PackageTags >Random;Data;Generator;Test</PackageTags >
10
10
<MinVerSkip Condition =" '$(Configuration)' == 'Debug'" >true</MinVerSkip >
11
11
<MinVerTagPrefix >v</MinVerTagPrefix >
12
-
13
- <Copyright >Copyright (c) 2020 Exceptionless. All rights reserved.</Copyright >
12
+
13
+ <Copyright >Copyright (c) 2021 Exceptionless. All rights reserved.</Copyright >
14
14
<Authors >Exceptionless</Authors >
15
15
<NoWarn >$(NoWarn);CS1591;NU1701</NoWarn >
16
16
<WarningsAsErrors >true</WarningsAsErrors >
32
32
33
33
<ItemGroup >
34
34
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0" PrivateAssets =" All" />
35
- <PackageReference Include =" AsyncFixer" Version =" 1.3.0 " PrivateAssets =" All" />
36
- <PackageReference Include =" MinVer" Version =" 2.3 .0" PrivateAssets =" All" />
35
+ <PackageReference Include =" AsyncFixer" Version =" 1.5.1 " PrivateAssets =" All" />
36
+ <PackageReference Include =" MinVer" Version =" 2.5 .0" PrivateAssets =" All" />
37
37
</ItemGroup >
38
38
39
39
<ItemGroup >
40
40
<None Include =" ../../LICENSE.txt" Pack =" true" Visible =" false" PackagePath =" $(PackageLicenseFile)" />
41
41
<None Include =" ../../build/exceptionless-icon.png" Pack =" true" PackagePath =" $(PackageIcon)" />
42
42
</ItemGroup >
43
-
43
+
44
44
</Project >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<Import Project =" ..\..\build\common.props" />
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <TargetFramework >net5.0 </TargetFramework >
5
5
<IsPackable >False</IsPackable >
6
6
</PropertyGroup >
7
7
<ItemGroup >
8
8
<ProjectReference Include =" ..\..\src\Exceptionless.RandomData\Exceptionless.RandomData.csproj" />
9
9
</ItemGroup >
10
10
<ItemGroup >
11
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.7 .0" />
11
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.11 .0" />
12
12
<PackageReference Include =" xunit" Version =" 2.4.1" />
13
13
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.3" />
14
- <PackageReference Include =" Foundatio.Xunit" Version =" 10.0.0-beta8 " />
14
+ <PackageReference Include =" Foundatio.Xunit" Version =" 10.2.1 " />
15
15
</ItemGroup >
16
16
</Project >
You can’t perform that action at this time.
0 commit comments