Skip to content

Commit

Permalink
update to gradle action v4 (#232)
Browse files Browse the repository at this point in the history
* update to gradle action v4

* update to latest 243 snapshot

* enable cache

* try enabling cache

* enable cache cleanup

* remove comments
  • Loading branch information
mkurnikov authored Nov 9, 2024
1 parent 82eab88 commit da4dbed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 46 deletions.
52 changes: 7 additions & 45 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,58 +25,20 @@ jobs:
distribution: 'corretto'
java-version: 21

- name: Setup Gradle and dependencies
uses: gradle/actions/setup-gradle@v3
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: wrapper
# with `true`, caches will only be created in `master` branch, and PRs will run read-only
cache-read-only: false
arguments: ":resolveDependencies -Pkotlin.incremental=false --no-daemon"
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: "assemble testClasses -Pkotlin.incremental=false --no-daemon --stacktrace"
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion
run: ./gradlew assemble --stacktrace -Pkotlin.incremental=false

- name: Tests
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: ":test -Pkotlin.incremental=false --no-daemon --stacktrace"
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion
run: ./gradlew test --stacktrace -Pkotlin.incremental=false

- name: Verify plugin.xml
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: ":verifyPluginConfiguration -Pkotlin.incremental=false --no-daemon"
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion
run: ./gradlew verifyPluginConfiguration

- name: Verify plugin
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: ":verifyPlugin -Pkotlin.incremental=false --no-daemon"
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion
run: ./gradlew verifyPlugin
2 changes: 1 addition & 1 deletion gradle-243-SNAPSHOT.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pluginUntilBuild = 243.*

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = IC
platformVersion = 243.21155-EAP-CANDIDATE-SNAPSHOT
platformVersion = 243.21565-EAP-CANDIDATE-SNAPSHOT

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
Expand Down

0 comments on commit da4dbed

Please sign in to comment.