Skip to content

Commit d4b785d

Browse files
authored
chore(): Upgrade github actions (#16)
1 parent b055781 commit d4b785d

4 files changed

Lines changed: 23 additions & 22 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ name: Build
1616
on:
1717
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests)
1818
push:
19-
branches: [ main ]
19+
branches: [main]
2020
# Trigger the workflow on any pull request
2121
pull_request:
2222

@@ -42,22 +42,22 @@ jobs:
4242

4343
# Check out the current repository
4444
- name: Fetch Sources
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v6
4646

4747
# Validate wrapper
4848
- name: Gradle Wrapper Validation
4949
uses: gradle/actions/wrapper-validation@v3
5050

5151
# Set up Java environment for the next steps
5252
- name: Setup Java
53-
uses: actions/setup-java@v4
53+
uses: actions/setup-java@v5
5454
with:
5555
distribution: zulu
5656
java-version: 21
5757

5858
# Setup Gradle
5959
- name: Setup Gradle
60-
uses: gradle/actions/setup-gradle@v4
60+
uses: gradle/actions/setup-gradle@v5
6161
with:
6262
gradle-home-cache-cleanup: true
6363

@@ -94,7 +94,7 @@ jobs:
9494
# Run tests and upload a code coverage report
9595
test:
9696
name: Test
97-
needs: [ build ]
97+
needs: [build]
9898
runs-on: ubuntu-latest
9999
steps:
100100
# Free GitHub Actions Environment Disk Space
@@ -106,18 +106,18 @@ jobs:
106106

107107
# Check out the current repository
108108
- name: Fetch Sources
109-
uses: actions/checkout@v4
109+
uses: actions/checkout@v6
110110

111111
# Set up Java environment for the next steps
112112
- name: Setup Java
113-
uses: actions/setup-java@v4
113+
uses: actions/setup-java@v5
114114
with:
115115
distribution: zulu
116116
java-version: 21
117117

118118
# Setup Gradle
119119
- name: Setup Gradle
120-
uses: gradle/actions/setup-gradle@v4
120+
uses: gradle/actions/setup-gradle@v5
121121
with:
122122
gradle-home-cache-cleanup: true
123123

@@ -136,7 +136,7 @@ jobs:
136136
# Run plugin structure verification along with IntelliJ Plugin Verifier
137137
verify:
138138
name: Verify plugin
139-
needs: [ build ]
139+
needs: [build]
140140
runs-on: ubuntu-latest
141141
steps:
142142
# Free GitHub Actions Environment Disk Space
@@ -148,18 +148,18 @@ jobs:
148148

149149
# Check out the current repository
150150
- name: Fetch Sources
151-
uses: actions/checkout@v4
151+
uses: actions/checkout@v6
152152

153153
# Set up Java environment for the next steps
154154
- name: Setup Java
155-
uses: actions/setup-java@v4
155+
uses: actions/setup-java@v5
156156
with:
157157
distribution: zulu
158158
java-version: 21
159159

160160
# Setup Gradle
161161
- name: Setup Gradle
162-
uses: gradle/actions/setup-gradle@v4
162+
uses: gradle/actions/setup-gradle@v5
163163
with:
164164
gradle-home-cache-cleanup: true
165165

@@ -177,7 +177,7 @@ jobs:
177177
# Collect Plugin Verifier Result
178178
- name: Collect Plugin Verifier Result
179179
if: ${{ always() }}
180-
uses: actions/upload-artifact@v4
180+
uses: actions/upload-artifact@v6
181181
with:
182182
name: pluginVerifier-result
183183
path: ${{ github.workspace }}/build/reports/pluginVerifier

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ jobs:
2424

2525
# Check out current repository
2626
- name: Fetch Sources
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828
with:
2929
ref: ${{ github.event.release.tag_name }}
3030

3131
# Setup Java 11 environment for the next steps
3232
- name: Setup Java
33-
uses: actions/setup-java@v4
33+
uses: actions/setup-java@v5
3434
with:
3535
distribution: zulu
3636
java-version: 21
3737
cache: gradle
3838

3939
# Setup Gradle
4040
- name: Setup Gradle
41-
uses: gradle/actions/setup-gradle@v4
41+
uses: gradle/actions/setup-gradle@v5
4242
with:
4343
gradle-home-cache-cleanup: true
4444

@@ -56,4 +56,3 @@ jobs:
5656
PKG="$PROJECT_NAME-${VERSION:1}.zip"
5757
ls -l "$DIST_DIR"
5858
gh release create ${{ github.ref_name }} "$DIST_DIR/$PKG" --generate-notes
59-

build.gradle.kts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id("java")
3-
id("org.jetbrains.kotlin.jvm") version "1.9.25"
4-
id("org.jetbrains.intellij.platform") version "2.10.5"
3+
id("org.jetbrains.kotlin.jvm") version "2.1.20"
4+
id("org.jetbrains.intellij.platform") version "2.13.1"
55
}
66

77
group = "com.github.junkfactory"
@@ -16,7 +16,7 @@ repositories {
1616

1717
dependencies {
1818
intellijPlatform {
19-
create("IU", "LATEST-EAP-SNAPSHOT", useInstaller = false)
19+
create("IU", "2026.1")
2020
testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform)
2121

2222
// Add necessary plugin dependencies for compilation here, example:
@@ -48,7 +48,9 @@ tasks {
4848
targetCompatibility = "21"
4949
}
5050
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
51-
kotlinOptions.jvmTarget = "21"
51+
compilerOptions {
52+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21)
53+
}
5254
}
5355

5456
signPlugin {

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)