qBittorrent/.github/workflows/ci_webui.yaml

49 lines
1,003 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]
permissions:
security-events: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.head_ref != '' }}
2021-03-23 17:20:37 +03:00
jobs:
ci:
name: Check
runs-on: ubuntu-latest
2021-03-23 17:20:37 +03:00
defaults:
run:
working-directory: src/webui/www
steps:
2021-08-14 09:54:15 +03:00
- name: Checkout repository
uses: actions/checkout@v3
2021-03-23 17:20:37 +03:00
2021-08-14 09:54:15 +03:00
- name: Setup nodejs
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
2021-03-23 17:20:37 +03:00
2021-08-14 09:54:15 +03:00
- name: Install tools
run: npm install
2021-03-23 17:20:37 +03:00
2021-08-14 09:54:15 +03:00
- name: Lint code
run: npm run lint
2021-03-23 17:20:37 +03:00
2021-08-14 09:54:15 +03:00
- 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