mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-11 05:46:18 +00:00
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: "Qodana | Code Quality Scan and Static Analysis"
|
|
|
|
on:
|
|
push:
|
|
branches: [dev]
|
|
pull_request:
|
|
types: [opened, reopened, edited, synchronize]
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
default_branch: dev
|
|
|
|
jobs:
|
|
qodana:
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.11.4"
|
|
|
|
- name: Install project dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
if [ -f requirements.txt ];
|
|
then pip install -r requirements.txt;
|
|
fi
|
|
|
|
- name: "Qodana Scan"
|
|
uses: JetBrains/qodana-action@v2023.1.5
|
|
env:
|
|
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|
|
with:
|
|
args: --baseline,qodana.sarif.json
|
|
|
|
- name: "Upload Qodana Report"
|
|
uses: github/codeql-action/upload-sarif@v2
|
|
with:
|
|
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
|