Skip to content

Commit

Permalink
set to use .net 5 in the github action
Browse files Browse the repository at this point in the history
  • Loading branch information
glennawatson committed Sep 22, 2020
1 parent d337ce1 commit a35a6ee
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.x
dotnet-version: '5.0.100-rc.1.20452.10'

- name: Install Latest NuGet
uses: nuget/setup-nuget@v1
Expand Down Expand Up @@ -52,18 +52,18 @@ jobs:
run: dotnet test --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput="../../artifacts/coverage/coverage.xml" /p:Include="[${{ env.productNamespacePrefix}}*]*" /p:Exclude="[${{ env.productNamespacePrefix}}*Tests.*]*"
working-directory: src

- name: Generate Coverage Report
run: reportgenerator -reports:"coverage.*.xml" -targetdir:report-output
working-directory: artifacts/coverage
# - name: Generate Coverage Report
# run: reportgenerator -reports:"coverage.*.xml" -targetdir:report-output
# working-directory: artifacts/coverage

- name: Generate Coverage Artifacts
uses: actions/upload-artifact@master
with:
name: Coverage
path: artifacts/coverage/report-output
# - name: Generate Coverage Artifacts
# uses: actions/upload-artifact@master
# with:
# name: Coverage
# path: artifacts/coverage/report-output

- name: Upload Code Coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
directory: artifacts/coverage
# - name: Upload Code Coverage
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
# directory: artifacts/coverage
78 changes: 39 additions & 39 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,42 +21,42 @@ jobs:
with:
fetch-depth: 0

- name:

- name: Install .NET Core
uses: actions/setup-dotnet@v1
if: ${{ env.validRelease }}
with:
dotnet-version: '3.1.x'

- name: Install Latest NuGet
uses: nuget/setup-nuget@v1
if: ${{ env.validRelease }}
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
nuget-version: '5.x'

- name: NBGV
uses: dotnet/nbgv@master
if: ${{ env.validRelease }}
with:
setAllVars: true

- name: Restore NuGet Packages
if: ${{ env.validRelease }}
run: dotnet restore
working-directory: src

- name: Add MSBuild to PATH
if: ${{ env.validRelease }}
uses: microsoft/setup-msbuild@v1.0.1

- name: Build
if: ${{ env.validRelease }}
run: msbuild /t:build,pack /maxcpucount /p:NoPackageAnalysis=true /verbosity:minimal /p:Configuration=${{ env.configuration }}
working-directory: src

- name: Release NuGet packages
if: ${{ env.validRelease }}
working-directory: src
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }}
# - name:

# - name: Install .NET Core
# uses: actions/setup-dotnet@v1
# if: ${{ env.validRelease }}
# with:
# dotnet-version: '3.1.x'

# - name: Install Latest NuGet
# uses: nuget/setup-nuget@v1
# if: ${{ env.validRelease }}
# with:
# nuget-api-key: ${{ secrets.NUGET_API_KEY }}
# nuget-version: '5.x'

# - name: NBGV
# uses: dotnet/nbgv@master
# if: ${{ env.validRelease }}
# with:
# setAllVars: true

# - name: Restore NuGet Packages
# if: ${{ env.validRelease }}
# run: dotnet restore
# working-directory: src

# - name: Add MSBuild to PATH
# if: ${{ env.validRelease }}
# uses: microsoft/setup-msbuild@v1.0.1

# - name: Build
# if: ${{ env.validRelease }}
# run: msbuild /t:build,pack /maxcpucount /p:NoPackageAnalysis=true /verbosity:minimal /p:Configuration=${{ env.configuration }}
# working-directory: src

# - name: Release NuGet packages
# if: ${{ env.validRelease }}
# working-directory: src
# run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }}

0 comments on commit a35a6ee

Please sign in to comment.