Skip to content

Commit

Permalink
Update code_quality.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiale committed Jul 20, 2024
1 parent 800bfdc commit 57e2d24
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Qodana

on:
workflow_dispatch:
pull_request:
push:
branches: # Specify your branches here
- main # The 'main' branch
- 'releases/*' # The release branches
branches:
- main
- 'releases/*'

jobs:
qodana:
Expand All @@ -15,11 +16,33 @@ jobs:
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
- name: Check out repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
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
- name: 'Qodana Scan'
node-version: '20.x'

- name: Qodana Scan
uses: JetBrains/qodana-action@v2023.3
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
linter: jetbrains/qodana-jvm:2023.3
results-dir: qodana-results
cache-dir: qodana-cache
fail-threshold: 10
fail-on-problems: true

- name: Upload Qodana Results
uses: actions/upload-artifact@v3
with:
name: qodana-results
path: qodana-results

- name: Show Qodana Logs
run: cat qodana-results/qodana.log

0 comments on commit 57e2d24

Please sign in to comment.