qBittorrent/.github/workflows/webui_ci.yaml

32 lines
573 B
YAML
Raw Normal View History

2021-08-12 20:45:50 +03:00
name: CI - WebUI
2021-03-23 17:20:37 +03:00
on: [pull_request, push]
jobs:
check_webui:
name: Check WebUI
runs-on: ubuntu-latest
2021-03-23 17:20:37 +03:00
defaults:
run:
working-directory: src/webui/www
steps:
- name: checkout repository
uses: actions/checkout@v2
2021-03-23 17:20:37 +03:00
- name: setup nodejs
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
2021-03-23 17:20:37 +03:00
- name: install tools
run: npm install
2021-03-23 17:20:37 +03:00
- name: lint code
run: npm run lint
2021-03-23 17:20:37 +03:00
- name: format code
run: |
npm run format
git diff --exit-code