diff --git a/.github/workflows/build-test.yml b/.github/workflows/code-samples.yml similarity index 58% rename from .github/workflows/build-test.yml rename to .github/workflows/code-samples.yml index 21a181ebd..421374f3f 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/code-samples.yml @@ -1,42 +1,11 @@ -name: Build -on: [push, pull_request] +name: Code Samples +on: + push: + paths: ['code_samples/**'] + pull_request: + paths: ['code_samples/**'] jobs: - - documentedProblemsPageVerification: - name: Documented Problems Page Verification - runs-on: ubuntu-latest - steps: - - name: Fetch Sources - uses: actions/checkout@v2 - - name: Get Plugin Verifier Version - id: get-version - run: | - echo "::set-output name=version::$(curl -Ss https://api.bintray.com/packages/jetbrains/intellij-plugin-service/intellij-plugin-verifier/versions/_latest | jq -r '.name')" - shell: bash - - name: Setup Cache - id: cache - uses: actions/cache@v2 - with: - path: ~/.verifier - key: ${{ runner.os }}-verifier-${{ steps.get-version.outputs.version }} - - name: Setup Java - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Download Plugin Verifier - if: steps.cache.outputs.cache-hit != 'true' - env: - VERSION: ${{ steps.get-version.outputs.version }} - run: | - mkdir -p ~/.verifier/ - curl -L --output ~/.verifier/verifier-all.jar https://dl.bintray.com/jetbrains/intellij-plugin-service/org/jetbrains/intellij/plugins/verifier-cli/$VERSION/verifier-cli-$VERSION-all.jar - - name: Run Plugin Verifier - run: | - PR_REPOSITORY=$(jq -re ".pull_request.head.repo.full_name // empty" $GITHUB_EVENT_PATH) || true - REPOSITORY=${PR_REPOSITORY:-$GITHUB_REPOSITORY} - REF=${GITHUB_HEAD_REF:-$GITHUB_REF} - java -cp ~/.verifier/verifier-all.jar com.jetbrains.pluginverifier.filtering.documented.DocumentedProblemsPageVerifierMain $REPOSITORY ${REF##*/} gradleValidation: name: Gradle Wrappers diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..3ee4a08a2 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,43 @@ +name: Docs +on: + push: + paths-ignore: ['code_samples/**'] + pull_request: + paths-ignore: ['code_samples/**'] + +jobs: + + documentedProblemsPageVerification: + name: Documented Problems Page Verification + runs-on: ubuntu-latest + steps: + - name: Fetch Sources + uses: actions/checkout@v2 + - name: Get Plugin Verifier Version + id: get-version + run: | + echo "::set-output name=version::$(curl -Ss https://api.bintray.com/packages/jetbrains/intellij-plugin-service/intellij-plugin-verifier/versions/_latest | jq -r '.name')" + shell: bash + - name: Setup Cache + id: cache + uses: actions/cache@v2 + with: + path: ~/.verifier + key: ${{ runner.os }}-verifier-${{ steps.get-version.outputs.version }} + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Download Plugin Verifier + if: steps.cache.outputs.cache-hit != 'true' + env: + VERSION: ${{ steps.get-version.outputs.version }} + run: | + mkdir -p ~/.verifier/ + curl -L --output ~/.verifier/verifier-all.jar https://dl.bintray.com/jetbrains/intellij-plugin-service/org/jetbrains/intellij/plugins/verifier-cli/$VERSION/verifier-cli-$VERSION-all.jar + - name: Run Plugin Verifier + run: | + PR_REPOSITORY=$(jq -re ".pull_request.head.repo.full_name // empty" $GITHUB_EVENT_PATH) || true + REPOSITORY=${PR_REPOSITORY:-$GITHUB_REPOSITORY} + REF=${GITHUB_HEAD_REF:-$GITHUB_REF} + java -cp ~/.verifier/verifier-all.jar com.jetbrains.pluginverifier.filtering.documented.DocumentedProblemsPageVerifierMain $REPOSITORY ${REF##*/} diff --git a/README.md b/README.md index 4b8eeb3c2..54dc4b975 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ [![official JetBrains project](https://jb.gg/badges/official.svg)][jb:confluence-on-gh] [![Twitter Follow](https://img.shields.io/twitter/follow/JBPlatform?style=flat)][jb:twitter] -[![Build](https://github.com/JetBrains/intellij-sdk-docs/workflows/Build/badge.svg)][gh:build] +[![Build](https://github.com/JetBrains/intellij-sdk-docs/workflows/Docs/badge.svg)][gh:workflow-docs] +[![Build](https://github.com/JetBrains/intellij-sdk-docs/workflows/Code%20Samples/badge.svg)][gh:workflow-code-samples] [![Slack](https://img.shields.io/badge/Slack-%23intellij--platform-blue)][jb:slack] Welcome to the repository for [IntelliJ Platform SDK Documentation](https://plugins.jetbrains.com/docs/intellij/?from=GH-README) site. @@ -15,7 +16,8 @@ Please report any content inconsistencies, outdated materials, cosmetic issues, ## Contributing Please follow the steps outlined in [Contributing](https://plugins.jetbrains.com/docs/intellij/intellij-sdk-docs-original-contributing.html). -[gh:build]: https://github.com/JetBrains/intellij-sdk-docs/actions?query=workflow%3ABuild +[gh:workflow-docs]: https://github.com/JetBrains/intellij-sdk-docs/actions?query=workflow%3ADocs +[gh:workflow-code-samples]: https://github.com/JetBrains/intellij-sdk-docs/actions?query=workflow%3ACode%20Samples [jb:confluence-on-gh]: https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub [jb:slack]: https://plugins.jetbrains.com/slack diff --git a/code_samples/README.md b/code_samples/README.md index e768c17ce..d4b7b6029 100644 --- a/code_samples/README.md +++ b/code_samples/README.md @@ -3,7 +3,7 @@ [![official JetBrains project](https://jb.gg/badges/official.svg)][jb:confluence-on-gh] [![JetBrains IntelliJ Platform SDK Docs](https://jb.gg/badges/docs.svg)][jb:docs] [![Twitter Follow](https://img.shields.io/twitter/follow/JBPlatform?style=flat)][jb:twitter] -[![Build](https://github.com/JetBrains/intellij-sdk-docs/workflows/Build/badge.svg)][gh:build] +[![Build](https://github.com/JetBrains/intellij-sdk-docs/workflows/Code%20Samples/badge.svg)][gh:workflow-code-samples] [![Slack](https://img.shields.io/badge/Slack-%23intellij--platform-blue)][jb:slack] Learn how to build plugins using IntelliJ Platform SDK for the [JetBrains products][jb:products] by experimenting with our code samples. @@ -54,7 +54,7 @@ In the following table, you may find all available samples provided in the separ | [Tool Window](./tool_window) | Custom Tool Window example plugin. | | [Tree Structure Provider](./tree_structure_provider) | Tree Structure Provider showing only plain text files. | -[gh:build]: https://github.com/JetBrains/intellij-sdk-docs/actions?query=workflow%3ABuild +[gh:workflow-code-samples]: https://github.com/JetBrains/intellij-sdk-docs/actions?query=workflow%3ACode%20Samples [gh:template]: https://github.com/JetBrains/intellij-platform-plugin-template [jb:confluence-on-gh]: https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub @@ -66,4 +66,4 @@ In the following table, you may find all available samples provided in the separ [docs]: https://plugins.jetbrains.com/docs/intellij/ [docs:gradle]: https://plugins.jetbrains.com/docs/intellij/gradle-build-system.html [docs:plugin.xml]: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html -[docs:eps]: https://plugins.jetbrains.com/docs/intellij/extension-point-list.html \ No newline at end of file +[docs:eps]: https://plugins.jetbrains.com/docs/intellij/extension-point-list.html