mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 03:06:37 +03:00
0f32de9d8c
This enable codebase scanning for C++ and JavaScript languages. https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning
48 lines
1,003 B
YAML
48 lines
1,003 B
YAML
name: CI - WebUI
|
|
|
|
on: [pull_request, push]
|
|
|
|
permissions:
|
|
security-events: write
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: ${{ github.head_ref != '' }}
|
|
|
|
jobs:
|
|
ci:
|
|
name: Check
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: src/webui/www
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup nodejs
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 'lts/*'
|
|
|
|
- name: Install tools
|
|
run: npm install
|
|
|
|
- name: Lint code
|
|
run: npm run lint
|
|
|
|
- name: Format code
|
|
run: |
|
|
npm run format
|
|
git diff --exit-code
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v2
|
|
with:
|
|
config-file: ./.github/workflows/helper/codeql/js.yaml
|
|
languages: javascript
|
|
|
|
- name: Run CodeQL analysis
|
|
uses: github/codeql-action/analyze@v2
|