1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00
qBittorrent/.github/workflows/ci_webui.yaml

33 lines
559 B
YAML
Raw Normal View History

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