Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions .github/workflows/cicd-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ on:
solution:
required: true
type: string
retry-max-attempts:
required: false
type: number
default: 1
retry-timeout:
required: false
type: number
default: 15
secrets:
FETCH_TOKEN:
required: false
Expand Down Expand Up @@ -118,6 +126,8 @@ jobs:
runs-on: ${{ inputs.runs-on-tests || inputs.runs-on-build || 'ubuntu-latest' }}
solution: ${{ inputs.solution }}
solution-version: ${{ needs.version.outputs.solution-version }}
retry-max-attempts: ${{ inputs.retry-max-attempts || 3 }}
retry-timeout: ${{ inputs.retry-timeout || 15 }}
secrets: inherit

build:
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/step-dotnet-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ on:
solution-version:
required: true
type: string
retry-max-attempts:
required: false
type: number
default: 3
retry-timeout:
required: false
type: number
default: 15
secrets:
CODECOV_TOKEN:
required: false
Expand Down Expand Up @@ -113,10 +121,15 @@ jobs:
- name: Build
run: dotnet build ${{ inputs.solution }} -c Release -v ${{ inputs.dotnet-logging || 'quiet' }} --no-restore /p:GeneratePackageOnBuild=false

- name: Test
- name: Retry Step
id: test
run: |
dotnet test ${{ inputs.solution }} -c Release -v ${{ inputs.dotnet-logging }} --no-build --no-restore --collect:"XPlat Code Coverage;Format=cobertura,opencover" /p:GeneratePackageOnBuild=false -- --coverage --coverage-output-format cobertura
uses: nick-fields/retry@v3.0.0
with:
timeout_minutes: ${{ inputs.retry-timeout || 15 }}
max_attempts: ${{ inputs.retry-max-attempts || 1 }}
shell: pwsh
command: |
dotnet test ${{ inputs.solution }} -c Release -v ${{ inputs.dotnet-logging }} --no-build --no-restore --collect:"XPlat Code Coverage;Format=cobertura,opencover" /p:GeneratePackageOnBuild=false -- --coverage --coverage-output-format cobertura

- name: Stop SonarQube Analysis
if: ${{ inputs.enableSonarQube == true && (success() || steps.test.conclusion == 'failure') }}
Expand Down
Loading