Skip to content

Change the behavior to throw exception on load errors #183

Change the behavior to throw exception on load errors

Change the behavior to throw exception on load errors #183

Workflow file for this run

name: Build
on:
pull_request:
env:
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true
# Set the build number in MinVer
MINVERBUILDMETADATA: build.${{github.run_number}}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
fetch-depth: 0
- name: 'Git Fetch Tags'
run: git fetch --tags
shell: pwsh
- name: 'Install .NET Core SDK'
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: 'Fix permissions'
run: chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle.sh && chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle_nolist.sh
shell: bash
- name: 'Dotnet Tool Restore'
run: dotnet tool restore
shell: pwsh
- name: 'Dotnet Cake Build'
run: dotnet cake --target=Build
shell: pwsh
- name: 'Dotnet Cake Test'
run: dotnet cake --target=Test
shell: pwsh
- name: Copy Coverage To Predictable Location
if: github.event_name == 'pull_request'
run: cp coverage/*/coverage.cobertura.xml coverage/coverage.cobertura.xml
- name: 'Publish Code Coverage'
uses: actions/upload-artifact@v2
with:
name: Coverage Cobertura Report
path: './coverage/coverage.cobertura.xml'
- name: 'Publish Test Results'
uses: actions/upload-artifact@v2
with:
name: Tests HTML Report
path: './coverage/VaultSharp.Extensions.Configuration.Test.html'
- name: Code Coverage Summary Report
if: github.event_name == 'pull_request'
uses: irongut/[email protected]
with:
filename: './coverage/coverage.cobertura.xml'
badge: true
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
- name: 'Dotnet Cake Pack'
run: dotnet cake --target=Pack
shell: pwsh