chore: Lint core #168
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: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
cleanup-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Abort previous action run | |
uses: rokroskar/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
qodana-scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Qodana Scan | |
uses: JetBrains/[email protected] | |
timeout-minutes: 30 | |
with: | |
args: "--linter,jetbrains/qodana-jvm-community,--fail-threshold,10" | |
use-caches: false | |
- name: Deploy to GitHub Pages | |
if: github.event_name != 'pull_request' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ${{ runner.temp }}/qodana/results/report | |
destination_dir: ./qodana/report |