Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
Add specific Node version to use: 20.7.x

Add front-end build step.

Add manual Workflow dispatch.
  • Loading branch information
JosefDvorak authored Jan 15, 2024
1 parent 14a5ffd commit 42dd6e5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:


jobs:
build:
Expand All @@ -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

0 comments on commit 42dd6e5

Please sign in to comment.