Merge pull request #3292 from 1c-syntax/feature/mdclasses_0130-rc3 #1670
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Qodana | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- develop | |
- feature/qodana | |
jobs: | |
gatekeeper: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'translations_') == false || github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
steps: | |
- run: echo 'Open the Golden Gate' | |
qodana: | |
needs: gatekeeper | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 'Qodana Scan' | |
uses: JetBrains/[email protected] | |
env: | |
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | |
with: | |
linter: jetbrains/qodana-jvm-community | |
- uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json | |
- name: Deploy to GitHub Pages | |
if: github.event_name == 'push' | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ${{ runner.temp }}/qodana/results/report | |
destination_dir: ./qodana |