From 42dd6e5b31c309de3ec8a6d2d89872d444231d0a Mon Sep 17 00:00:00 2001 From: Josef Dvorak Date: Mon, 15 Jan 2024 14:32:27 +1100 Subject: [PATCH] Update dotnet.yml Add specific Node version to use: 20.7.x Add front-end build step. Add manual Workflow dispatch. --- .github/workflows/dotnet.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 00a067a9..01274084 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -8,6 +8,8 @@ on: branches: [ "master" ] pull_request: branches: [ "master" ] + workflow_dispatch: + jobs: build: @@ -20,9 +22,15 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: 8.0.x + node-version: 20.7.x - name: Restore dependencies run: dotnet restore - - name: Build + - name: Build front-end app + run: | + cd ./KenticoInspector.WebApplication/ClientApp + npm i + npm run build + - name: Build dotnet app run: dotnet build --no-restore - name: Test run: dotnet test --no-build --verbosity normal