Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 28 additions & 32 deletions .github/workflows/nightlybuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install NET 7
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'
dotnet-version: '7.0.101'

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
- name: Install NET 7
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'
dotnet-version: '7.0.101'

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
- name: Install NET 7
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'
dotnet-version: '7.0.101'

- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1.4.4
Expand Down Expand Up @@ -215,38 +215,34 @@ jobs:
body: Url is ${{env.action_url}}
labels: nightlybuild

#codecoverage:
# name: "Nightly Build - Code Coverage"
# env:
# ASPNETCORE_ENVIRONMENT: "Production"
codecoverage:
name: "Nightly Build - Code Coverage"
env:
ASPNETCORE_ENVIRONMENT: "Production"

# runs-on: ubuntu-latest
runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v2.3.4
steps:
- uses: actions/checkout@v2.3.4

# - name: Restore Nuget Packages
# run: dotnet restore EstateAdministrationUI.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
- name: Install NET 7
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.101'

- name: Restore Nuget Packages
run: dotnet restore EstateAdministrationUI.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json

# - name: Build Code
# run: dotnet build EstateAdministrationUI.sln --configuration ReleaseNoNode
- name: Build Code
run: dotnet build EstateAdministrationUI.sln --configuration ReleaseNoNode

# - name: Run Unit Tests
# run: |
# echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
# dotnet test "EstateAdministrationUI.Tests\EstateAdministrationUI.Tests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov1.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov"
# dotnet test "EstateAdministrationUI.BusinessLogic.Tests\EstateAdministrationUI.BusinessLogic.Tests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov2.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov"

# - name: Setup Node.js for use with actions
# uses: actions/setup-node@v1.4.4

# - name: Combine Coverage
# run: |
# npm i lcov-result-merger
# ./node_modules/lcov-result-merger/bin/lcov-result-merger.js '*.info' 'lcov.info'
- name: Run Unit Tests
run: |
echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
dotnet test "EstateAdministrationUI.Tests\EstateAdministrationUI.Tests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov1.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov"
dotnet test "EstateAdministrationUI.BusinessLogic.Tests\EstateAdministrationUI.BusinessLogic.Tests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov2.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov"

# - name: Upload Code Coverage
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.github_token }}
# path-to-lcov: lcov.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: ./lcov1.info,./lcov2.info