Skip to content

Commit ea3e3e0

Browse files
Add frontend build job to PR workflow
Agent-Logs-Url: https://github.com/IntelliTect/EssentialCSharp.Web/sessions/fbba773e-6096-4a94-bbee-7b81246100f1 Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
1 parent 6705ec1 commit ea3e3e0

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/PR-Build-And-Test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ on:
66
workflow_dispatch:
77

88
jobs:
9+
frontend-build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version-file: EssentialCSharp.Web/package.json
18+
cache: npm
19+
cache-dependency-path: EssentialCSharp.Web/package-lock.json
20+
21+
- name: Install npm dependencies
22+
working-directory: EssentialCSharp.Web
23+
run: npm ci
24+
25+
- name: Build frontend
26+
working-directory: EssentialCSharp.Web
27+
run: npm run build
28+
929
build-and-test:
1030
runs-on: ubuntu-latest
1131
steps:

0 commit comments

Comments
 (0)