Skip to content

Commit 23eb40f

Browse files
committed
workflow: add frontend build and linter check to GitHub Actions
1 parent f1c36b8 commit 23eb40f

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Frontend Build Check
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'custom_components/alarmo/frontend/**'
7+
push:
8+
paths:
9+
- 'custom_components/alarmo/frontend/**'
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: '24'
22+
23+
- name: Install dependencies
24+
working-directory: custom_components/alarmo/frontend
25+
run: npm install
26+
27+
- name: Run linter check
28+
working-directory: custom_components/alarmo/frontend
29+
run: npm run lint:check
30+
31+
- name: Build frontend
32+
working-directory: custom_components/alarmo/frontend
33+
run: npm run build

custom_components/alarmo/frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"rollup": "rollup -c",
1010
"babel": "./node_modules/.bin/babel dist/alarm-panel.js --out-file dist/alarm-panel.js",
1111
"lint": "eslint src/**/*.ts --fix",
12+
"lint:check": "eslint src/**/*.ts",
1213
"start": "rollup -c --watch"
1314
},
1415
"repository": {

0 commit comments

Comments
 (0)