Skip to content

Commit 84586df

Browse files
Merge pull request #68 from IowaComputerGurus/feature/build-update
Updated Build
2 parents 97e1fb6 + 3d6a728 commit 84586df

File tree

4 files changed

+15
-22
lines changed

4 files changed

+15
-22
lines changed

.github/workflows/ci-build.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ jobs:
2424
dotnet-version: 9.0.x
2525

2626
- name: Install GitVersion
27-
uses: gittools/actions/gitversion/setup@v3.1.3
27+
uses: gittools/actions/gitversion/setup@v4.2.0
2828
with:
29-
versionSpec: '6.0.5'
29+
versionSpec: '6.4.0'
3030

3131
- name: Determine Version
3232
id: gitversion
33-
uses: gittools/actions/gitversion/[email protected]
34-
with:
35-
useConfigFile: true
33+
uses: gittools/actions/gitversion/[email protected]
3634

3735
- name: Restore Packages
3836
run: dotnet restore "${{ env.solution-path }}"
@@ -81,24 +79,22 @@ jobs:
8179
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
8280
8381
- name: Install GitVersion
84-
uses: gittools/actions/gitversion/setup@v3.1.3
82+
uses: gittools/actions/gitversion/setup@v4.2.0
8583
with:
86-
versionSpec: '6.0.5'
84+
versionSpec: '6.4.0'
8785

8886
- name: Determine Version
8987
id: gitversion
90-
uses: gittools/actions/gitversion/[email protected]
91-
with:
92-
useConfigFile: true
88+
uses: gittools/actions/gitversion/[email protected]
9389

9490
- name: Build and analyze
9591
env:
9692
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
9793
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
9894
shell: powershell
9995
run: |
100-
.\.sonar\scanner\dotnet-sonarscanner begin /k:"IowaComputerGurus_netcore.utilities" /o:"iowacomputergurus-github" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
96+
.\.sonar\scanner\dotnet-sonarscanner begin /k:"IowaComputerGurus_netcore.utilities" /o:"iowacomputergurus-github" /d:sonar.login="${{ env.SONAR_TOKEN }}"
10197
dotnet restore "${{ env.solution-path }}"
10298
dotnet build "${{ env.solution-path }}" --no-restore --configuration Release -p:version=${{ steps.gitversion.outputs.majorMinorPatch }}
10399
dotnet test "${{ env.solution-path }}" --no-build --configuration Release --collect "XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover --logger "trx;LogFileName=unittests.trx"
104-
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
100+
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ env.SONAR_TOKEN }}"

.github/workflows/release-build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ jobs:
2323
dotnet-version: 9.0.x
2424

2525
- name: Install GitVersion
26-
uses: gittools/actions/gitversion/setup@v3.1.3
26+
uses: gittools/actions/gitversion/setup@v4.2.0
2727
with:
28-
versionSpec: '6.0.5'
28+
versionSpec: '6.4.0'
2929

3030
- name: Determine Version
3131
id: gitversion
32-
uses: gittools/actions/gitversion/[email protected]
33-
with:
34-
useConfigFile: true
32+
uses: gittools/actions/gitversion/[email protected]
3533

3634
- name: Restore Packages
3735
run: dotnet restore "${{ env.solution-path }}"

GitVersion.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ branches:
1717
pull-request:
1818
regex: (pull|pull\-requests|pr)[/-]
1919
label: 'pr'
20-
label-number-pattern: '[/-](?<number>\d+)[-/]'
2120
increment: Patch
2221
is-release-branch: false
2322
source-branches: []

src/NetCore.Utilities.Tests/NetCore.Utilities.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="coverlet.collector" Version="6.0.2">
11+
<PackageReference Include="coverlet.collector" Version="6.0.4">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>
1515
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="9.0.0" />
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1717
<PackageReference Include="Moq" Version="4.20.72" />
18-
<PackageReference Include="xunit" Version="2.9.2" />
19-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
18+
<PackageReference Include="xunit" Version="2.9.3" />
19+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
2020
<PrivateAssets>all</PrivateAssets>
2121
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2222
</PackageReference>

0 commit comments

Comments
 (0)