diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f9029ab19..86cb9b83e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -38,31 +38,14 @@ jobs: with: fetch-depth: ${{ github.event.pull_request.commits }} - - name: Download AsciiDoc plugin for AsciiDoc checks - run: | - curl -L -o asciidoctor-intellij-plugin.zip https://github.com/asciidoctor/asciidoctor-intellij-plugin/releases/download/0.38.2/asciidoctor-intellij-plugin-0.38.2.zip - unzip asciidoctor-intellij-plugin.zip - - - name: Download Grazie plugin for grammar checks - # https://plugins.jetbrains.com/plugin/12175-grazie/versions - run: | - curl -L -o grazie.zip 'https://plugins.jetbrains.com/plugin/download?rel=true&updateId=257026' - unzip grazie.zip - - - name: Download Grazie Professional plugin for grammar checks - # https://plugins.jetbrains.com/plugin/16136-grazie-professional/versions - run: | - curl -L -o grazie-pro.zip 'https://plugins.jetbrains.com/plugin/download?rel=true&updateId=260567' - unzip grazie-pro.zip + - name: Get one more commit so Qodana we can identify the changes + if: github.event_name == 'pull_request' + run: git fetch --deepen=1 - name: Create empty folder to overwrite disabled plugin run: | mkdir empty - - name: Get one more commit so Qodana we can identify the changes - if: github.event_name == 'pull_request' - run: git fetch --deepen=1 - - name: 'Qodana for Docs' uses: JetBrains/qodana-action@v2023.1.5 with: @@ -75,10 +58,7 @@ jobs: args: > --linter,jetbrains/qodana-jvm-community:2023.1, --property=idea.suppressed.plugins.id=com.intellij.gradle, - -v,${{ github.workspace }}/grazie:/opt/idea/plugins/grazie, -v,${{ github.workspace }}/empty:/opt/idea/plugins/gradle-java, - -v,${{ github.workspace }}/grazie-pro:/opt/idea/plugins/grazie-pro, - -v,${{ github.workspace }}/asciidoctor-intellij-plugin:/opt/idea/plugins/asciidoctor-intellij-plugin, --baseline,doc/qodana-baseline.sarif.json # https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github#example-workflow-that-runs-the-eslint-analysis-tool diff --git a/doc/users-guide/modules/ROOT/pages/features/advanced/validation-cicd.adoc b/doc/users-guide/modules/ROOT/pages/features/advanced/validation-cicd.adoc index 9a83f041d..74320d877 100644 --- a/doc/users-guide/modules/ROOT/pages/features/advanced/validation-cicd.adoc +++ b/doc/users-guide/modules/ROOT/pages/features/advanced/validation-cicd.adoc @@ -107,8 +107,5 @@ include::example$workflow-docs.yml[tags=!cleanup] The following issues in the Qodana issue tracker are open. Voting for them will make this integration simpler. -* https://youtrack.jetbrains.com/issue/QD-1291[QD-1291^] -Qodana easy plugin installation * https://youtrack.jetbrains.com/issue/QD-1290[QD-1290^] Add soft wrap to code preview - diff --git a/qodana.yaml b/qodana.yaml index 81666cbc1..8f7616d6a 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -1,6 +1,11 @@ version: 1.0 profile: path: doc/asciidoc-inspection.xml +plugins: + # Grazie plugin ('tanvd.grazi') is already installed, no need to download it again + - id: com.intellij.grazie.pro + # Order of plugin in the order which they depend on. AsciiDoc depends on Qodana pro, therefore add it after + - id: org.asciidoctor.intellij.asciidoc exclude: - name: All paths: