Skip to content

Commit 8cfde2d

Browse files
committed
GH workflow runs-on: windows-latest
1 parent 3cdfffd commit 8cfde2d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
build:
16-
runs-on: ubuntu-latest
16+
runs-on: windows-latest
1717
permissions:
1818
contents: write
1919
packages: write
@@ -63,15 +63,17 @@ jobs:
6363
- name: Update version in csproj files
6464
if: steps.get_version.outputs.is_release == 'true'
6565
run: |
66-
sed -i 's/<Version>.*<\/Version>/<Version>${{ steps.get_version.outputs.version }}<\/Version>/' src/Octopus.Blazor/Octopus.Blazor.csproj
67-
sed -i 's/<Version>.*<\/Version>/<Version>${{ steps.get_version.outputs.version }}<\/Version>/' src/Octopus.Api.Client/Octopus.Api.Client.csproj
68-
shell: bash
66+
$version = "${{ steps.get_version.outputs.version }}"
67+
foreach ($file in @("src/Octopus.Blazor/Octopus.Blazor.csproj", "src/Octopus.Api.Client/Octopus.Api.Client.csproj")) {
68+
(Get-Content $file) -replace '<Version>.*</Version>', "<Version>$version</Version>" | Set-Content $file
69+
}
70+
shell: pwsh
6971

7072
- name: Build
7173
run: dotnet build --configuration Release --no-restore
7274

7375
- name: Run tests
74-
run: dotnet test --configuration Release --no-build --verbosity normal || echo "No tests found"
76+
run: dotnet test --configuration Release --no-build --verbosity normal
7577

7678
- name: Pack NuGet packages
7779
if: steps.get_version.outputs.is_release == 'true'

src/Octopus.Server.App/Octopus.Server.App.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="9.0.0" />
1919
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
2020
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.0" />
21-
<!-- xBIM packages for IFC to WexBIM conversion -->
2221
<PackageReference Include="Xbim.Essentials" Version="6.0.563" />
2322
<PackageReference Include="Xbim.Geometry.Engine.Interop" Version="6.3.873-netcore" />
2423
<PackageReference Include="Xbim.ModelGeometry.Scene" Version="6.3.873-netcore" />

0 commit comments

Comments
 (0)