mirror of
https://github.com/tombi-toml/tombi.git
synced 2025-08-30 06:57:46 +00:00
chore: Synchronize with template
This commit is contained in:
parent
079bcb936c
commit
1c8a295dec
6 changed files with 18 additions and 24 deletions
29
.github/workflows/ci_intellij_plugin.yml
vendored
29
.github/workflows/ci_intellij_plugin.yml
vendored
|
@ -21,18 +21,15 @@ jobs:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
outputs:
|
|
||||||
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch sources
|
- name: Fetch sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Java
|
- name: Set up Java
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: zulu
|
distribution: zulu
|
||||||
java-version: 21
|
java-version: 21
|
||||||
- name: Setup Gradle
|
- name: Set up Gradle
|
||||||
uses: gradle/actions/setup-gradle@v4
|
uses: gradle/actions/setup-gradle@v4
|
||||||
- name: Export properties
|
- name: Export properties
|
||||||
id: properties
|
id: properties
|
||||||
|
@ -41,7 +38,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
chmod +x ./gradlew
|
chmod +x ./gradlew
|
||||||
PROPERTIES="$(./gradlew properties --console=plain -q)"
|
PROPERTIES="$(./gradlew properties --console=plain -q)"
|
||||||
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
|
|
||||||
- name: Build plugin
|
- name: Build plugin
|
||||||
working-directory: ./editors/intellij
|
working-directory: ./editors/intellij
|
||||||
run: |
|
run: |
|
||||||
|
@ -73,14 +69,16 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch sources
|
- name: Fetch sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Java
|
- name: Set up Java
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: zulu
|
distribution: zulu
|
||||||
java-version: 21
|
java-version: 21
|
||||||
- name: Setup Gradle
|
- name: Set up Gradle
|
||||||
uses: gradle/actions/setup-gradle@v4
|
uses: gradle/actions/setup-gradle@v4
|
||||||
- name: Setup Tombi
|
with:
|
||||||
|
cache-read-only: true
|
||||||
|
- name: Set up Tombi
|
||||||
uses: tombi-toml/setup-tombi@v1
|
uses: tombi-toml/setup-tombi@v1
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: ./editors/intellij
|
working-directory: ./editors/intellij
|
||||||
|
@ -114,7 +112,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Setup Java
|
- name: Set up Java
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: zulu
|
distribution: zulu
|
||||||
|
@ -138,24 +136,21 @@ jobs:
|
||||||
large-packages: false
|
large-packages: false
|
||||||
- name: Fetch sources
|
- name: Fetch sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Java
|
- name: Set up Java
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: zulu
|
distribution: zulu
|
||||||
java-version: 21
|
java-version: 21
|
||||||
- name: Setup Gradle
|
- name: Set up Gradle
|
||||||
uses: gradle/actions/setup-gradle@v4
|
uses: gradle/actions/setup-gradle@v4
|
||||||
- name: Setup IDEs cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
with:
|
||||||
path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides
|
cache-read-only: true
|
||||||
key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }}
|
|
||||||
- name: Run verifier
|
- name: Run verifier
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
working-directory: ./editors/intellij
|
working-directory: ./editors/intellij
|
||||||
run: |
|
run: |
|
||||||
chmod +x ./gradlew
|
chmod +x ./gradlew
|
||||||
./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
|
./gradlew verifyPlugin
|
||||||
- name: Upload result
|
- name: Upload result
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
@ -99,7 +99,6 @@ intellijPlatform {
|
||||||
|
|
||||||
ideaVersion {
|
ideaVersion {
|
||||||
sinceBuild = providers.gradleProperty("pluginSinceBuild")
|
sinceBuild = providers.gradleProperty("pluginSinceBuild")
|
||||||
untilBuild = providers.gradleProperty("pluginUntilBuild")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
annotations = "26.0.2"
|
annotations = "26.0.2"
|
||||||
junit = "4.13.2"
|
junit = "4.13.2"
|
||||||
# plugins
|
# plugins
|
||||||
changelog = "2.2.1"
|
changelog = "2.3.0"
|
||||||
intelliJPlatform = "2.6.0"
|
intelliJPlatform = "2.7.0"
|
||||||
kotlin = "2.2.0"
|
kotlin = "2.2.0"
|
||||||
kover = "0.9.1"
|
kover = "0.9.1"
|
||||||
qodana = "2025.1.1"
|
qodana = "2025.1.1"
|
||||||
|
|
BIN
editors/intellij/gradle/wrapper/gradle-wrapper.jar
vendored
BIN
editors/intellij/gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
4
editors/intellij/gradlew
vendored
4
editors/intellij/gradlew
vendored
|
@ -114,7 +114,7 @@ case "$( uname )" in #(
|
||||||
NONSTOP* ) nonstop=true ;;
|
NONSTOP* ) nonstop=true ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
CLASSPATH="\\\"\\\""
|
||||||
|
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
# Determine the Java command to use to start the JVM.
|
||||||
|
@ -213,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
set -- \
|
set -- \
|
||||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
-classpath "$CLASSPATH" \
|
-classpath "$CLASSPATH" \
|
||||||
org.gradle.wrapper.GradleWrapperMain \
|
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
# Stop when "xargs" is not available.
|
# Stop when "xargs" is not available.
|
||||||
|
|
4
editors/intellij/gradlew.bat
vendored
4
editors/intellij/gradlew.bat
vendored
|
@ -70,11 +70,11 @@ goto fail
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
set CLASSPATH=
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue