@@ -12,21 +12,19 @@ jobs:
1212 version :
1313 runs-on : ubuntu-latest
1414 outputs :
15- NuGetVersion : ${{ steps.gitversion.outputs.NuGetVersion }}
15+ MajorMinorPatch : ${{ steps.gitversion.outputs.MajorMinorPatch }}
1616 steps :
1717 - name : Checkout
1818 uses : actions/checkout@v4
1919 with :
2020 fetch-depth : 0
2121 - name : Install GitVersion
22- uses : gittools/actions/gitversion/setup@v3.2 .1
22+ uses : gittools/actions/gitversion/setup@v4.0 .1
2323 with :
24- versionSpec : 5 .x
24+ versionSpec : 6 .x
2525 - name : Determine Version
2626 id : gitversion
27- uses :
gittools/actions/gitversion/[email protected] 28- with :
29- useConfigFile : true
27+ uses :
gittools/actions/gitversion/[email protected] 3028
3129 buildAndTest :
3230 needs : version
7775 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
7876 shell : powershell
7977 run : |
80- .\.sonar\scanner\dotnet-sonarscanner begin /k:"WebExtensions.Net" /o:"mingyaulee" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /v:"v${{ needs.version.outputs.NuGetVersion }}" /d:sonar.cs.vstest.reportsPaths="test/TestResults/*.trx" /d:sonar.cs.opencover.reportsPaths="test/TestResults/**/*.opencover.xml"
78+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"WebExtensions.Net" /o:"mingyaulee" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /v:"v${{ needs.version.outputs.MajorMinorPatch }}" /d:sonar.cs.vstest.reportsPaths="test/TestResults/*.trx" /d:sonar.cs.opencover.reportsPaths="test/TestResults/**/*.opencover.xml"
8179 dotnet build --no-restore --configuration Release
8280 .\test\WebExtensions.Net.IntegrationTestsRunner\BuildOutput\Release\playwright.ps1 install --with-deps
8381 .\.coverlet\console\coverlet ./test/WebExtensions.Net.BrowserExtensionIntegrationTest/bin/Release/net9.0/browserextension/framework --include "[WebExtensions.Net]*" --target "dotnet" --targetargs "test . --no-restore --no-build --configuration Release" --format opencover --output ./test/TestResults/coverage --verbosity detailed
@@ -93,12 +91,12 @@ jobs:
93919492 id : tagExistsCheck
9593 with :
96- tag : ' v${{ needs.version.outputs.NuGetVersion }}'
94+ tag : ' v${{ needs.version.outputs.MajorMinorPatch }}'
9795 env :
9896 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9997 - name : Create tag
10098 if : steps.tagExistsCheck.outputs.exists == 'false'
10199 uses : negz/create-tag@v1
102100 with :
103101 token : ${{ secrets.GITHUB_TOKEN }}
104- version : v${{ needs.version.outputs.NuGetVersion }}
102+ version : v${{ needs.version.outputs.MajorMinorPatch }}
0 commit comments