-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase dependency versions. Support 232.*
- Loading branch information
Showing
11 changed files
with
88 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,18 @@ jobs: | |
version: ${{ steps.properties.outputs.version }} | ||
changelog: ${{ steps.properties.outputs.changelog }} | ||
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 | ||
- name: Check out | ||
uses: actions/checkout@v2.4.0 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download Lama Cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
id: opam-cache | ||
with: | ||
path: | | ||
|
@@ -101,10 +108,10 @@ jobs: | |
limactl copy default:~/opam_cache.tar.xz ~/opam_cache.tar.xz | ||
- name: Gradle Wrapper Validation | ||
uses: gradle/[email protected].4 | ||
uses: gradle/[email protected].6 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v2 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: liberica | ||
java-version: 17 | ||
|
@@ -118,14 +125,14 @@ jobs: | |
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" | ||
NAME="$(echo "$PROPERTIES" | grep "^pluginName:" | cut -f2- -d ' ')" | ||
CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)" | ||
CHANGELOG="${CHANGELOG//'%'/'%25'}" | ||
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" | ||
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" | ||
echo "::set-output name=version::$VERSION" | ||
echo "::set-output name=name::$NAME" | ||
echo "::set-output name=changelog::$CHANGELOG" | ||
echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier" | ||
echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
echo "name=$NAME" >> $GITHUB_OUTPUT | ||
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT | ||
echo "changelog<<EOF" >> $GITHUB_OUTPUT | ||
echo "$CHANGELOG" >> $GITHUB_OUTPUT | ||
echo "EOF" >> $GITHUB_OUTPUT | ||
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier | ||
|
@@ -134,13 +141,13 @@ jobs: | |
|
||
- name: Collect Tests Result | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tests-result | ||
path: ${{ github.workspace }}/build/reports/tests | ||
|
||
- name: Setup Plugin Verifier IDEs Cache | ||
uses: actions/cache@v2.1.7 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides | ||
key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }} | ||
|
@@ -150,14 +157,14 @@ jobs: | |
|
||
- name: Collect Plugin Verifier Result | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: pluginVerifier-result | ||
path: ${{ github.workspace }}/build/reports/pluginVerifier | ||
|
||
- name: Qodana - Code Inspection | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: JetBrains/qodana-action@v4.2.5 | ||
uses: JetBrains/qodana-action@v2023.1.5 | ||
|
||
- name: Prepare Plugin Artifact | ||
id: artifact | ||
|
@@ -168,11 +175,11 @@ jobs: | |
FILENAME=`ls *.zip` | ||
unzip "$FILENAME" -d content | ||
echo "::set-output name=filename::${FILENAME:0:-4}" | ||
echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT | ||
- name: Upload artifact | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: actions/upload-artifact@v2.2.4 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ steps.artifact.outputs.filename }} | ||
path: ./build/distributions/content/*/* | ||
|
@@ -184,7 +191,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v2.4.0 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Remove Old Release Drafts | ||
env: | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
# LamaPlugin Changelog | ||
|
||
## [Unreleased] | ||
- Support 2023.2 EAP | ||
|
||
## [0.2.5] - 2022-12-26 | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[versions] | ||
# libraries | ||
annotations = "24.0.1" | ||
|
||
# plugins | ||
dokka = "1.8.10" | ||
kotlin = "1.8.21" | ||
changelog = "2.1.0" | ||
gradleIntelliJPlugin = "1.14.1" | ||
qodana = "0.1.13" | ||
|
||
[libraries] | ||
annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" } | ||
|
||
[plugins] | ||
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" } | ||
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" } | ||
gradleIntelliJPlugin = { id = "org.jetbrains.intellij", version.ref = "gradleIntelliJPlugin" } | ||
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } | ||
qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" } |
Binary file not shown.
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 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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,12 +1,12 @@ | ||
package org.jetbrains.lama.editor | ||
|
||
import com.intellij.codeInsight.template.FileTypeBasedContextType | ||
import com.intellij.psi.PsiFile | ||
import com.intellij.codeInsight.template.TemplateActionContext | ||
import org.jetbrains.lama.psi.LamaFileType | ||
import org.jetbrains.lama.psi.LamaLanguage | ||
|
||
class LamaContextType : FileTypeBasedContextType("Lama", "&Lama", LamaFileType) { | ||
override fun isInContext(file: PsiFile, offset: Int): Boolean { | ||
return file.language.isKindOf(LamaLanguage) | ||
override fun isInContext(templateActionContext: TemplateActionContext): Boolean { | ||
return templateActionContext.file.language.isKindOf(LamaLanguage) | ||
} | ||
} |