qBittorrent/.github/workflows/ci_webui.yaml

37 lines
679 B
YAML
Raw Normal View History

2021-08-13 01:45:50 +08:00
name: CI - WebUI
2021-03-23 22:20:37 +08:00
on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.head_ref != '' }}
2021-03-23 22:20:37 +08:00
jobs:
ci:
name: Check
runs-on: ubuntu-latest
2021-03-23 22:20:37 +08:00
defaults:
run:
working-directory: src/webui/www
steps:
2021-08-14 14:54:15 +08:00
- name: Checkout repository
uses: actions/checkout@v2
2021-03-23 22:20:37 +08:00
2021-08-14 14:54:15 +08:00
- name: Setup nodejs
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
2021-03-23 22:20:37 +08:00
2021-08-14 14:54:15 +08:00
- name: Install tools
run: npm install
2021-03-23 22:20:37 +08:00
2021-08-14 14:54:15 +08:00
- name: Lint code
run: npm run lint
2021-03-23 22:20:37 +08:00
2021-08-14 14:54:15 +08:00
- name: Format code
run: |
npm run format
git diff --exit-code