-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gitversion usage and optimize dotnet test command.
- Refactored gitversion steps to remove unnecessary conditional checks. - Modified dotnet test command to skip build step for efficiency.
- Loading branch information
1 parent
aeecdea
commit 3c3edc4
Showing
1 changed file
with
1 addition
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,14 +43,12 @@ jobs: | |
dotnet-version: '8.x' | ||
|
||
- name: tools - gitversion - install | ||
if: ${{ inputs.useVersioning == 'true' }} | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.x' | ||
preferLatestVersion: true | ||
|
||
- name: tools - gitversion - execute | ||
if: ${{ inputs.useVersioning == 'true' }} | ||
uses: gittools/actions/gitversion/[email protected] | ||
# with: | ||
# useConfigFile: true | ||
|
@@ -69,13 +67,12 @@ jobs: | |
run: dotnet restore | ||
|
||
- name: dotnet build | ||
if: ${{ inputs.useVersioning == 'true' }} | ||
shell: bash | ||
run: dotnet build --no-restore --configuration Release /p:Version=${{env.GitVersion_SemVer}} /p:AssemblyVersion=${{env.GitVersion_AssemblySemFileVer}} /p:NuGetVersion=${{env.GitVersion_SemVer}} | ||
|
||
- name: dotnet test | ||
shell: bash | ||
run: dotnet test --verbosity normal | ||
run: dotnet test --no-build --configuration Release --verbosity normal | ||
|
||
- name: test-reporter | ||
uses: dorny/test-reporter@v1 | ||
|