Skip to content

Commit 81b795d

Browse files
committed
chore: run plugin verification in parallel with the tests
1 parent dda2898 commit 81b795d

File tree

2 files changed

+53
-19
lines changed

2 files changed

+53
-19
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,32 @@ jobs:
2020
run: ./bin/hermit env -r >> $GITHUB_ENV
2121
- name: Test
2222
run: gradle clean test --info
23+
verify_new:
24+
name: Verify Plugin Against Latest Releases
25+
runs-on: ubuntu-latest
26+
strategy:
27+
matrix:
28+
release_type: [ release, eap ]
29+
env:
30+
RELEASE_TYPE: ${{ matrix.release_type }}
31+
VERIFY_VERSIONS: new
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v2
35+
- name: Init Hermit
36+
run: ./bin/hermit env -r >> $GITHUB_ENV
2337
- name: Plugin verification
2438
run: gradle clean verifyPlugin
39+
verify_old:
40+
name: Verify Plugin Against Old Releases
41+
runs-on: ubuntu-latest
42+
env:
43+
RELEASE_TYPE: release
44+
VERIFY_VERSIONS: old
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v2
48+
- name: Init Hermit
49+
run: ./bin/hermit env -r >> $GITHUB_ENV
50+
- name: Plugin verification
51+
run: gradle clean verifyPlugin

build.gradle.kts

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ val products = listOf(
5555
)
5656
val product = products.first { it.releaseType == (System.getenv("RELEASE_TYPE") ?: "release") }
5757

58+
val verifyOldVersions = System.getenv("VERIFY_VERSIONS") == "old"
59+
5860
val kotlinVersion = "1.9.25"
5961
val arrowVersion = "0.11.0"
6062

@@ -108,26 +110,31 @@ intellijPlatform {
108110
pluginVerification {
109111
// These need to match the versions from
110112
// https://data.services.jetbrains.com/products?fields=code,name,releases.downloads,releases.version,releases.build,releases.type&code=IIC,IIE,GO
111-
ides {
112-
select {
113-
types = listOf(IntelliJPlatformType.IntellijIdeaUltimate)
114-
sinceBuild = project.properties["IIC.from.version"] as String
115-
untilBuild = project.properties["IIC.from.version"] as String
116-
}
117-
select {
118-
types = listOf(IntelliJPlatformType.IntellijIdeaUltimate)
119-
sinceBuild = product.intellijVersion
120-
untilBuild = product.intellijVersion
121-
}
122-
select {
123-
types = listOf(IntelliJPlatformType.GoLand)
124-
sinceBuild = project.properties["GO.from.version"] as String
125-
untilBuild = project.properties["GO.from.version"] as String
113+
if (verifyOldVersions) {
114+
ides {
115+
select {
116+
types = listOf(IntelliJPlatformType.IntellijIdeaUltimate)
117+
sinceBuild = project.properties["IIC.from.version"] as String
118+
untilBuild = project.properties["IIC.from.version"] as String
119+
}
120+
select {
121+
types = listOf(IntelliJPlatformType.GoLand)
122+
sinceBuild = project.properties["GO.from.version"] as String
123+
untilBuild = project.properties["GO.from.version"] as String
124+
}
126125
}
127-
select {
128-
types = listOf(IntelliJPlatformType.GoLand)
129-
sinceBuild = product.golandVersion
130-
untilBuild = product.golandVersion
126+
} else {
127+
ides {
128+
select {
129+
types = listOf(IntelliJPlatformType.IntellijIdeaUltimate)
130+
sinceBuild = product.intellijVersion
131+
untilBuild = product.intellijVersion
132+
}
133+
select {
134+
types = listOf(IntelliJPlatformType.GoLand)
135+
sinceBuild = product.golandVersion
136+
untilBuild = product.golandVersion
137+
}
131138
}
132139
}
133140
}

0 commit comments

Comments
 (0)