Skip to content

⬆️ Azure DevOps should support pr-mode flag #632

⬆️ Azure DevOps should support pr-mode flag

⬆️ Azure DevOps should support pr-mode flag #632

Workflow file for this run

name: qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
scan:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- run: |
npm ci
npm run test
mkdir -p .qodana/code-coverage
mv scan/coverage/lcov.info .qodana/code-coverage
rm -rf scan/coverage
- uses: ./
with:
args: --print-problems,--log-level,debug,--config,.github/qodana.yaml
pr-mode: true
use-nightly: true
upload-result: true
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}