generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrading gradle-intellij-plugin to v2, generalising package namespace (
#62) * upgrading grade-intellij-plugin to v2, generalising package namespace * updating gradle command for release listing * fixing test package name * updating changelog * upgrading Gradle to v8.12, plugging in Qodana Cloud * upgrading Qodana linter * resolving code inspection issues, restricting versions to 241.* * fixing LSP startup, Qodana finding cleanup * reverting accidental plugin ID change * upgrading supported upper version, adding missing query result attributes, upgrading ktor
- Loading branch information
Showing
231 changed files
with
1,743 additions
and
683 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,52 @@ | ||
# GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps: | ||
# - validate Gradle Wrapper, | ||
# - run 'test' and 'verifyPlugin' tasks, | ||
# - run Qodana inspections, | ||
# - run 'buildPlugin' task and prepare artifact for the further tests, | ||
# - run 'runPluginVerifier' task, | ||
# - create a draft release. | ||
# - Validate Gradle Wrapper. | ||
# - Run 'test' and 'verifyPlugin' tasks. | ||
# - Run Qodana inspections. | ||
# - Run the 'buildPlugin' task and prepare artifact for further tests. | ||
# - Run the 'runPluginVerifier' task. | ||
# - Create a draft release. | ||
# | ||
# Workflow is triggered on push and pull_request events. | ||
# The workflow is triggered on push and pull_request events. | ||
# | ||
# GitHub Actions reference: https://help.github.com/en/actions | ||
# | ||
## JBIJPPTPL | ||
|
||
name: Build | ||
on: | ||
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests) | ||
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests) | ||
push: | ||
branches: [ main ] | ||
# Trigger the workflow on any pull request | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
# Prepare environment and build the plugin | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
version: ${{ steps.properties.outputs.version }} | ||
changelog: ${{ steps.properties.outputs.changelog }} | ||
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }} | ||
steps: | ||
|
||
# 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 | ||
# Check out current repository | ||
# Check out the current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v4 | ||
|
||
# Validate wrapper | ||
- name: Gradle Wrapper Validation | ||
uses: gradle/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
uses: gradle/actions/wrapper-validation@v3 | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v3 | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
# Set environment variables | ||
- name: Export Properties | ||
|
@@ -74,7 +64,7 @@ jobs: | |
echo "$CHANGELOG" >> $GITHUB_OUTPUT | ||
echo "EOF" >> $GITHUB_OUTPUT | ||
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier | ||
./gradlew printProductsReleases # prepare list of IDEs for Plugin Verifier | ||
# Build plugin | ||
- name: Build plugin | ||
|
@@ -102,23 +92,16 @@ jobs: | |
test: | ||
name: Test | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
|
||
# Check out current repository | ||
# Check out the current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v4 | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v3 | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
# Run tests | ||
- name: Run Tests | ||
|
@@ -132,61 +115,68 @@ jobs: | |
name: tests-result | ||
path: ${{ github.workspace }}/build/reports/tests | ||
|
||
# Upload Kover report to CodeCov | ||
# Upload the Kover report to CodeCov | ||
- name: Upload Code Coverage Report | ||
uses: codecov/codecov-action@v4 | ||
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: | ||
name: Inspect code | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
contents: write | ||
checks: write | ||
pull-requests: write | ||
steps: | ||
|
||
# Check out current repository | ||
# Free GitHub Actions Environment Disk Space | ||
- name: Maximize Build Space | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: false | ||
large-packages: false | ||
|
||
# Check out the current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v4 | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
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 | ||
|
||
# Run Qodana inspections | ||
- name: Qodana - Code Inspection | ||
uses: JetBrains/qodana-action@v2024.1.4 | ||
uses: JetBrains/qodana-action@v2024.3 | ||
with: | ||
cache-default-branch-only: true | ||
pr-mode: false | ||
env: | ||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | ||
QODANA_ENDPOINT: 'https://qodana.cloud' | ||
|
||
# Run plugin structure verification along with IntelliJ Plugin Verifier | ||
verify: | ||
name: Verify plugin | ||
needs: [ build, test, inspectCode ] | ||
runs-on: ubuntu-latest | ||
needs: [ build ] | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
|
||
# Check out current repository | ||
# Free GitHub Actions Environment Disk Space | ||
- name: Maximize Build Space | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: false | ||
large-packages: false | ||
|
||
# Check out the current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v4 | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v3 | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
# Cache Plugin Verifier IDEs | ||
- name: Setup Plugin Verifier IDEs Cache | ||
|
@@ -197,7 +187,7 @@ jobs: | |
|
||
# Run Verify Plugin task and IntelliJ Plugin Verifier tool | ||
- name: Run Plugin Verification tasks | ||
run: ./gradlew runPluginVerifier -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }} | ||
run: ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }} | ||
|
||
# Collect Plugin Verifier Result | ||
- name: Collect Plugin Verifier Result | ||
|
@@ -212,23 +202,16 @@ jobs: | |
releaseDraft: | ||
name: Release draft | ||
if: github.event_name != 'pull_request' | ||
needs: [ build, verify ] | ||
runs-on: ubuntu-latest | ||
needs: [ build, test, inspectCode, verify ] | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
contents: write | ||
steps: | ||
|
||
# Check out current repository | ||
# Check out the current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v4 | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Remove old release drafts by using the curl request for the available releases with a draft flag | ||
- name: Remove Old Release Drafts | ||
env: | ||
|
@@ -243,7 +226,7 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh release create v${{ needs.build.outputs.version }} \ | ||
gh release create "v${{ needs.build.outputs.version }}" \ | ||
--draft \ | ||
--title "v${{ needs.build.outputs.version }}" \ | ||
--notes "$(cat << 'EOM' | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.gradle | ||
.idea | ||
.intellijPlatform | ||
.qodana | ||
build | ||
jflex-1.9.1.jar | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.