From 5fb41171d6ec08b1be271f6b5b60cbd52d45bce7 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 21 Oct 2023 22:33:54 +0200 Subject: [PATCH] [gh-actions] Add web UI lint as a PR and push check --- .github/workflows/webui_lint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/webui_lint.yml diff --git a/.github/workflows/webui_lint.yml b/.github/workflows/webui_lint.yml new file mode 100644 index 00000000..0ede2bb0 --- /dev/null +++ b/.github/workflows/webui_lint.yml @@ -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