WebUI: Use Map instead of Mootools Hash in Torrents table
[qBittorrent.git] / .github / workflows / ci_webui.yaml
blobfd6f7134d9c4683f2ac1b228589060a002770055
1 name: CI - WebUI
3 on: [pull_request, push]
5 permissions:
6   security-events: write
8 concurrency:
9   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10   cancel-in-progress: ${{ github.head_ref != '' }}
12 jobs:
13   ci:
14     name: Check
15     runs-on: ubuntu-latest
17     defaults:
18       run:
19         working-directory: src/webui/www
21     steps:
22       - name: Checkout repository
23         uses: actions/checkout@v4
25       - name: Setup nodejs
26         uses: actions/setup-node@v4
27         with:
28           node-version: 'lts/*'
30       - name: Install tools
31         run: npm install
33       - name: Lint code
34         run: npm run lint
36       - name: Format code
37         run: |
38           npm run format
39           git diff --exit-code
41       - name: Initialize CodeQL
42         uses: github/codeql-action/init@v3
43         with:
44           config-file: .github/workflows/helper/codeql/js.yaml
45           languages: javascript
47       - name: Run CodeQL analysis
48         uses: github/codeql-action/analyze@v3