mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 14:09:51 -05:00
[gh-actions] Add web UI lint as a PR and push check
This commit is contained in:
27
.github/workflows/webui_lint.yml
vendored
Normal file
27
.github/workflows/webui_lint.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Web UI Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- 'web-src/**'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- 'web-src/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
working-directory: web-src
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Run linter
|
||||||
|
working-directory: web-src
|
||||||
|
run: npm run lint --no-fix
|
||||||
Reference in New Issue
Block a user