Skip to content

Commit

Permalink
KX-11806 - change paths within pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertZ authored and RobertZ committed Mar 14, 2024
1 parent 6b5d63b commit 5e48a05
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,32 @@ on:


jobs:
dotnet-format:
name: Format
runs-on: ubuntu-latest

defaults:
run:
shell: pwsh

steps:
- uses: actions/checkout@v4

- name: Add dotnet-format problem matcher
uses: xt0rted/dotnet-format-problem-matcher@v1

- name: Restore dotnet tools
uses: xt0rted/dotnet-tool-restore@v1

- name: Run dotnet format
uses: xt0rted/dotnet-format@v1
with:
only-changed-files: "true"



build-and-test:
name: "Build and test"
name: Build and test
runs-on: windows-latest

defaults:
Expand All @@ -45,15 +69,14 @@ jobs:
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5

- name: Setup VSTest
uses: darenm/Setup-VSTest@v1

- name: Restore Packages
run: nuget restore
run: nuget restore WebApp.sln
working-directory: ./src

- name: Build Solution
run: msbuild.exe /p:platform="Any CPU" /p:configuration="Release" /p:RestorePackages=false
run: msbuild.exe WebApp.sln /p:platform="Any CPU" /p:configuration="Release"
working-directory: ./src

- name: Test Solution
run: vstest.console.exe .\src\Kentico.Xperience.OpenAI.Azure.Tests\bin\Release\net48\Kentico.Xperience.OpenAI.Azure.Tests.dll
run: dotnet test --configuration Release --no-build --no-restore

0 comments on commit 5e48a05

Please sign in to comment.