Skip to content

Addressed nuget complaining about a lacking README.md #106

Addressed nuget complaining about a lacking README.md

Addressed nuget complaining about a lacking README.md #106

Workflow file for this run

name: Build Core Framework
on: [push]
env:
nuGetVersionNumber: 5.3
nuGetFullVersionNumber: 5.3.${{ github.run_number }}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
dotnet-version: [ '7.0.x' ]
steps:
- uses: actions/checkout@v1
- name: Setup dotnet CLI
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Setup dependencies caching
uses: actions/cache@v3
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Prepare Legacy NuGet
run: |
cd .\.nuget
ren NuGet.ex_ NuGet.exe
cd ..
.nuget\NuGet.exe restore Chinchilla.Logging.sln
- name: Build with dotnet CLI
run: dotnet build --configuration Release .\Chinchilla.Logging.sln
- name: Test with dotnet (.NET 4.7.2)
run: dotnet test -f net472 --logger trx --collect "Code Coverage" --results-directory "TestResults-net472-${{ matrix.dotnet-version }}" Chinchilla.Logging.Tests.Integration\Chinchilla.Logging.Tests.Integration.csproj
- name: Upload dotnet test results
uses: actions/upload-artifact@v3
with:
name: dotnet-net472-results-${{ matrix.dotnet-version }}
path: TestResults-net472-${{ matrix.dotnet-version }}
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
- name: Test with dotnet (.NET Core 6.0)
run: dotnet test -f net6.0 --logger trx --collect "Code Coverage" --results-directory "TestResults-net60-${{ matrix.dotnet-version }}" Chinchilla.Logging.Tests.Integration\Chinchilla.Logging.Tests.Integration.csproj
- name: Upload dotnet test results
uses: actions/upload-artifact@v3
with:
name: dotnet-net60-results-${{ matrix.dotnet-version }}
path: TestResults-net60-${{ matrix.dotnet-version }}
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
- name: Pack with dotnet CLI
run: |
forfiles /s /m Chinchilla.Logging*.csproj /c "cmd /c dotnet pack @PATH -c Release -p:Version=${{ env.nuGetVersionNumber }} -p:PackageVersion=${{ env.nuGetFullVersionNumber }} --version-suffix beta-$(date +%Y%m%d%H%M%S) --include-symbols -p:SymbolPackageFormat=snupkg --include-source -o ../Packaged"
# - name: Push with dotnet CLI
# run: |
# .nuget\NuGet.exe source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/cdmdotnet/index.json" -UserName cdmdotnet -Password ${{ secrets.GITHUB_TOKEN }}
# dotnet nuget push Packaged\*.nupkg -s "GitHub"