-
-
Notifications
You must be signed in to change notification settings - Fork 1
Updated Builds #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated Builds #87
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| changelog: | ||
| exclude: | ||
| labels: | ||
| - question | ||
| - wontfix | ||
| - invalid | ||
| categories: | ||
| - title: Exciting New Features 🎉 | ||
| labels: | ||
| - enhancement | ||
| - feature | ||
| - title: Squashed Bugs 🐛 | ||
| labels: | ||
| - bug | ||
| - breaking-change | ||
| - title: Adminsitrative | ||
| labels: | ||
| - administrative | ||
| - documentation | ||
| - title: Other Changes | ||
| labels: | ||
| - "*" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,13 +24,13 @@ jobs: | |
| dotnet-version: 8.0.x | ||
|
|
||
| - name: Install GitVersion | ||
| uses: gittools/actions/gitversion/setup@v3.1.1 | ||
| uses: gittools/actions/gitversion/setup@v4.2.0 | ||
| with: | ||
| versionSpec: '6.0.5' | ||
| versionSpec: '6.4.0' | ||
|
|
||
| - name: Determine Version | ||
| id: gitversion | ||
| uses: gittools/actions/gitversion/execute@v3.1.1 | ||
| uses: gittools/actions/gitversion/execute@v4.2.0 | ||
| with: | ||
| useConfigFile: true | ||
|
|
||
|
|
@@ -81,23 +81,21 @@ jobs: | |
| dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner | ||
|
|
||
| - name: Install GitVersion | ||
| uses: gittools/actions/gitversion/setup@v3.1.1 | ||
| uses: gittools/actions/gitversion/setup@v4.2.0 | ||
| with: | ||
| versionSpec: '6.0.5' | ||
| versionSpec: '6.4.0' | ||
|
|
||
| - name: Determine Version | ||
| id: gitversion | ||
| uses: gittools/actions/gitversion/[email protected] | ||
| with: | ||
| useConfigFile: true | ||
| uses: gittools/actions/gitversion/[email protected] | ||
|
|
||
| - name: Build and analyze | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
| shell: powershell | ||
| run: | | ||
| .\.sonar\scanner\dotnet-sonarscanner begin /k:"IowaComputerGurus_aspnetcore.utilities" /o:"iowacomputergurus-github" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /n:"AspNetCore Utilities" | ||
| .\.sonar\scanner\dotnet-sonarscanner begin /k:"IowaComputerGurus_aspnetcore.utilities" /o:"iowacomputergurus-github" /d:sonar.login="${{ env.SONAR_TOKEN }}" /n:"AspNetCore Utilities" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sonar token handling is inconsistent between begin and end steps. Line 98 uses Apply this diff to use the same token source in both steps: - .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
+ .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ env.SONAR_TOKEN }}"Also applies to: 102-102 🤖 Prompt for AI Agents |
||
| dotnet restore "${{ env.solution-path }}" | ||
| dotnet build "${{ env.solution-path }}" --no-restore --configuration Release -p:version=${{ steps.gitversion.outputs.majorMinorPatch }} | ||
| dotnet test "${{ env.solution-path }}" --no-build --configuration Release --collect "XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover --logger "trx;LogFileName=unittests.trx" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,15 +23,13 @@ jobs: | |
| dotnet-version: 8.0.x | ||
|
|
||
| - name: Install GitVersion | ||
| uses: gittools/actions/gitversion/setup@v3.1.1 | ||
| uses: gittools/actions/gitversion/setup@v4.2.0 | ||
| with: | ||
| versionSpec: '6.0.5' | ||
| versionSpec: '6.4.0' | ||
|
|
||
| - name: Determine Version | ||
| id: gitversion | ||
| uses: gittools/actions/gitversion/[email protected] | ||
| with: | ||
| useConfigFile: true | ||
| uses: gittools/actions/gitversion/[email protected] | ||
|
|
||
| - name: Restore Packages | ||
| run: dotnet restore "${{ env.solution-path }}" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.