Skip to content

Commit

Permalink
[Dependencies] - Update .github/actions/dotnet/action.yml to match th…
Browse files Browse the repository at this point in the history
…e template repo
  • Loading branch information
credfeto committed Aug 1, 2023
1 parent 5b0534c commit 12bb32e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/actions/dotnet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ runs:
- name: "Dotnet: Restore packages"
working-directory: ${{github.workspace}}/src
shell: bash
run: dotnet restore -nodeReuse:False || dotnet restore -nodeReuse:False -verbosity:d
# -p:NoWarn=MSB4241
run: dotnet restore -nodeReuse:False -p:NoWarn=MSB4241 || dotnet restore -nodeReuse:False -verbosity:d -p:NoWarn=MSB4241
env:
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
DOTNET_INSTALL_DIR: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
Expand All @@ -89,7 +88,7 @@ runs:
- name: "Dotnet: Build"
working-directory: ${{github.workspace}}/src
shell: bash
run: dotnet build --configuration Release "/p:Version=${{inputs.BUILD_VERSION}}" "/p:EnableSarif=True" -nodeReuse:False ${{env.DOTNET_RELEASE_DEFINES}}
run: dotnet build --configuration Release "/p:Version=${{inputs.BUILD_VERSION}}" "/p:EnableSarif=True" -nodeReuse:False -p:NoWarn=MSB4241 ${{env.DOTNET_RELEASE_DEFINES}}
env:
ReleaseNotes: ${{inputs.RELEASE_NOTES}}
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
Expand All @@ -105,7 +104,7 @@ runs:
- name: "Dotnet: Test"
working-directory: ${{github.workspace}}/src
shell: bash
run: dotnet test --no-build --no-restore -noConsoleLogger --configuration Release "/p:Version=${{inputs.BUILD_VERSION}}" --filter FullyQualifiedName\!~Integration --logger:"trx;LogFilePrefix=testResults" --results-directory ../test-results -nodeReuse:False
run: dotnet test --no-build --no-restore -noConsoleLogger --configuration Release "/p:Version=${{inputs.BUILD_VERSION}}" --filter FullyQualifiedName\!~Integration --logger:"trx;LogFilePrefix=testResults" --results-directory ../test-results -nodeReuse:False -p:NoWarn=MSB4241
env:
ReleaseNotes: ${{inputs.RELEASE_NOTES}}
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
Expand Down Expand Up @@ -168,7 +167,7 @@ runs:
name: "Dotnet: Pack tool"
working-directory: ${{github.workspace}}/src
shell: bash
run: dotnet pack --configuration Release "/p:Version=${{inputs.BUILD_VERSION}}" --no-restore -nodeReuse:False
run: dotnet pack --configuration Release "/p:Version=${{inputs.BUILD_VERSION}}" --no-restore -nodeReuse:False -p:NoWarn=MSB4241
env:
ReleaseNotes: ${{inputs.RELEASE_NOTES}}
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
Expand Down

0 comments on commit 12bb32e

Please sign in to comment.