diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 806b291b..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' ---- - - - -**Describe the bug:** - - -**Steps to reproduce:** - - -**Expected behavior:** - - -**Additional context:** - diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 00000000..bd9f9fbc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,63 @@ +name: Bug report +description: Create a report to help us improve +labels: ["bug"] +body: + + - type: textarea + id: issue + attributes: + label: What happened? + description: A clear and concise description of what the bug is. + validations: + required: true + + - type: textarea + id: logs + attributes: + label: Relevant log output or stack trace + description: | + Please copy and paste any relevant log output. + Add the full stack trace if available. + If possible, run the failing task with `--stacktrace` flag. + + *This will be automatically formatted into code, so there is no need for backticks.* + render: shell + + - type: textarea + id: steps + attributes: + label: Steps to reproduce + description: Steps to reproduce the behavior – provide your build configuration. + validations: + required: true + + - type: input + id: version + attributes: + label: Gradle IntelliJ Plugin version + placeholder: 1.16.0 + validations: + required: true + + - type: input + id: gradle + attributes: + label: Gradle version + placeholder: 8.2.1 + validations: + required: true + + - type: dropdown + id: os + attributes: + label: Operating System + options: + - macOS + - Linux + - Windows + + - type: input + id: url + attributes: + label: Link to build, i.e. failing GitHub Action job + placeholder: https://github.com/username/project/actions/runs/1234567890 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..58278e98 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: true +contact_links: + - name: Documentation + url: https://github.com/JetBrains/intellij-platform-plugin-template + about: Check the README file in the first place. + - name: Getting Help + url: https://plugins.jetbrains.com/docs/intellij/getting-help.html + about: Check if you search for a help in plugin development. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 00000000..9c130616 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,32 @@ +name: Feature request +description: Suggest an idea for this project +labels: ["enhancement"] +body: + + - type: textarea + id: cause + attributes: + label: Describe the need of your request + description: A clear and concise description of what the need or problem is. + validations: + required: true + + - type: textarea + id: solution + attributes: + label: Proposed solution + description: A clear and concise description of what you want to happen. + validations: + required: true + + - type: textarea + id: alternatives + attributes: + label: Alternatives you've considered + description: What did you try so far to accomplish the goal? + + - type: textarea + id: context + attributes: + label: Additional context + description: Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e6b8b10..b185ba99 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,10 +34,10 @@ jobs: # Free GitHub Actions Environment Disk Space - name: Maximize Build Space - run: | - sudo rm -rf /usr/share/dotnet - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/ghc + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + large-packages: false # Check out current repository - name: Fetch Sources @@ -45,7 +45,7 @@ jobs: # Validate wrapper - name: Gradle Wrapper Validation - uses: gradle/wrapper-validation-action@v1.0.6 + uses: gradle/wrapper-validation-action@v1.1.0 # Setup Java environment for the next steps - name: Setup Java @@ -57,6 +57,8 @@ jobs: # Setup Gradle - name: Setup Gradle uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true # Set environment variables - name: Export Properties @@ -119,6 +121,8 @@ jobs: # Setup Gradle - name: Setup Gradle uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true # Run tests - name: Run Tests @@ -136,7 +140,7 @@ jobs: - name: Upload Code Coverage Report uses: codecov/codecov-action@v3 with: - files: ${{ github.workspace }}/build/reports/kover/xml/report.xml + files: ${{ github.workspace }}/build/reports/kover/report.xml # Run Qodana inspections and provide report inspectCode: @@ -162,14 +166,14 @@ jobs: # Run Qodana inspections - name: Qodana - Code Inspection - uses: JetBrains/qodana-action@v2023.1.5 + uses: JetBrains/qodana-action@v2023.2.1 with: cache-default-branch-only: true # Run plugin structure verification along with IntelliJ Plugin Verifier verify: name: Verify plugin - needs: [ build, test, inspectCode ] + needs: [ build ] runs-on: ubuntu-latest steps: @@ -187,6 +191,8 @@ jobs: # Setup Gradle - name: Setup Gradle uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true # Cache Plugin Verifier IDEs - name: Setup Plugin Verifier IDEs Cache @@ -212,7 +218,7 @@ jobs: releaseDraft: name: Release draft if: github.event_name != 'pull_request' - needs: [ build, verify ] + needs: [ build, test, inspectCode, verify ] runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9fe0880..a9183c44 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,8 @@ jobs: # Setup Gradle - name: Setup Gradle uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true # Set environment variables - name: Export Properties diff --git a/.github/workflows/run-ui-tests.yml b/.github/workflows/run-ui-tests.yml index 3ddd4983..65682e73 100644 --- a/.github/workflows/run-ui-tests.yml +++ b/.github/workflows/run-ui-tests.yml @@ -45,6 +45,8 @@ jobs: # Setup Gradle - name: Setup Gradle uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true # Run IDEA prepared for UI testing - name: Run IDE diff --git a/CHANGELOG.md b/CHANGELOG.md index db9f9bcd..e550c433 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,19 @@ # IntelliJ Platform Plugin Template Changelog ## [Unreleased] +### Added +- [Foojay Toolchains Plugin](https://github.com/gradle/foojay-toolchains) integration +- GitHub Actions: set `gradle-home-cache-cleanup: true` flag to the Gradle Build Action +- GitHub Actions: use `jlumbroso/free-disk-space` to free disk space + +### Changed +- GitHub Actions: rearrange the Build workflow +- Dependencies - upgrade `org.jetbrains.kotlinx.kover` to `0.7.3` +- Dependencies (GitHub Actions) - upgrade `gradle/wrapper-validation-action` to `v1.1.0` +- Dependencies (GitHub Actions) - upgrade `JetBrains/qodana-action` to `v2023.2.1` + +### Fixed +- GitHub Actions: Fixed Kover report path when uploading the code coverage report ## [1.9.0] - 2023-07-11 diff --git a/gradle.properties b/gradle.properties index 454366b8..62d931df 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = org.jetbrains.plugins.template pluginName = IntelliJ Platform Plugin Template pluginRepositoryUrl = https://github.com/JetBrains/intellij-platform-plugin-template # SemVer format -> https://semver.org -pluginVersion = 1.9.0 +pluginVersion = 1.10.0 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 222 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c9740828..4e938759 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -7,7 +7,7 @@ kotlin = "1.9.0" changelog = "2.1.2" gradleIntelliJPlugin = "1.15.0" qodana = "0.1.13" -kover = "0.7.2" +kover = "0.7.3" [libraries] annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" } diff --git a/settings.gradle.kts b/settings.gradle.kts index 8ada61fd..a7455542 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1 +1,5 @@ +plugins { + id("org.gradle.toolchains.foojay-resolver-convention") version "0.6.0" +} + rootProject.name = "IntelliJ Platform Plugin Template"