Skip to content

Commit ff327c6

Browse files
committed
Update build
1 parent 6cc64f4 commit ff327c6

File tree

5 files changed

+35
-24
lines changed

5 files changed

+35
-24
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: nuget
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10

.github/workflows/build.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Build
22
on: [push, pull_request]
3-
env:
4-
DOTNET_CLI_TELEMETRY_OPTOUT: 1
3+
54
jobs:
65
build:
76
runs-on: ubuntu-latest
@@ -13,42 +12,43 @@ jobs:
1312
- name: Setup .NET Core
1413
uses: actions/setup-dotnet@v1
1514
with:
16-
dotnet-version: 3.1.100
15+
dotnet-version: 3.1.302
1716
- name: Build Reason
1817
run: "echo ref: ${{github.ref}} event: ${{github.event_name}}"
1918
- name: Build Version
20-
id: version
21-
uses: thefringeninja/action-minver@2.0.0-preview1
22-
with:
23-
tag-prefix: v
19+
run: |
20+
dotnet tool install --global minver-cli --version 2.3.0
21+
version=$(minver --tag-prefix v)
22+
echo "::set-env name=MINVERVERSIONOVERRIDE::$version"
2423
- name: Build
2524
run: dotnet build --configuration Release
25+
- name: Start Services
26+
run: docker-compose up -d && docker-compose up ready
2627
- name: Run Tests
27-
run: dotnet test --configuration Release --results-directory artifacts --no-build --logger:trx
28+
run: dotnet test --configuration Release --no-build
2829
- name: Package
2930
if: github.event_name != 'pull_request'
3031
run: dotnet pack --configuration Release --no-build
32+
- name: Install GitHub Package Tool
33+
if: github.event_name != 'pull_request'
34+
run: dotnet tool install gpr -g
3135
- name: Publish CI Packages
36+
if: github.event_name != 'pull_request'
3237
run: |
3338
for package in $(find -name "*.nupkg" | grep "minver" -v); do
3439
echo "${0##*/}": Pushing $package...
3540
36-
# GPR
37-
# workaround for GPR push issue
38-
curl -sX PUT -u "foundatiofx:${{ secrets.GITHUB_TOKEN }}" -F package=@$package https://nuget.pkg.github.com/foundatiofx/
41+
# GitHub
42+
gpr push $package -k ${{ secrets.GITHUB_TOKEN }} || true
3943
40-
# feedz (remove once GPR supports anonymous access)
41-
dotnet nuget push $package --source https://f.feedz.io/foundatio/foundatio/nuget --api-key ${{ secrets.FEEDZ_KEY }}
44+
# feedz (remove once GPR supports anonymous)
45+
dotnet nuget push $package --source https://f.feedz.io/foundatio/foundatio/nuget --api-key ${{ secrets.FEEDZ_KEY }} --skip-duplicate
4246
done
4347
- name: Publish Release Packages
4448
if: startsWith(github.ref, 'refs/tags/v')
4549
run: |
4650
for package in $(find -name "*.nupkg" | grep "minver" -v); do
4751
echo "${0##*/}": Pushing $package...
48-
dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}
52+
dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate
4953
done
50-
- name: Upload Artifacts
51-
uses: actions/[email protected]
52-
with:
53-
name: artifacts
54-
path: artifacts
54+

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ value = _numbers.Random();
3030

3131
var day = RandomData.GetEnum<_days>();
3232
```
33+
34+
## Thanks to all the people who have contributed
35+
36+
[![contributors](https://contributors-img.web.app/image?repo=exceptionless/Exceptionless.RandomData)](https://github.com/exceptionless/Exceptionless.RandomData/graphs/contributors)

build/common.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232

3333
<ItemGroup>
3434
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
35-
<PackageReference Include="AsyncFixer" Version="1.1.6" PrivateAssets="All" />
36-
<PackageReference Include="MinVer" Version="2.0.0" PrivateAssets="All" />
35+
<PackageReference Include="AsyncFixer" Version="1.3.0" PrivateAssets="All" />
36+
<PackageReference Include="MinVer" Version="2.3.0" PrivateAssets="All" />
3737
</ItemGroup>
3838

3939
<ItemGroup>

test/Exceptionless.RandomData.Tests/Exceptionless.RandomData.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<ProjectReference Include="..\..\src\Exceptionless.RandomData\Exceptionless.RandomData.csproj" />
99
</ItemGroup>
1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.0" />
1212
<PackageReference Include="xunit" Version="2.4.1" />
13-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
14-
<PackageReference Include="Foundatio.Logging.Xunit" Version="9.0.0" />
13+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
14+
<PackageReference Include="Foundatio.Xunit" Version="10.0.0-beta10" />
1515
</ItemGroup>
1616
</Project>

0 commit comments

Comments
 (0)