Skip to content

Commit

Permalink
chore: run plugin verification in parallel with the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmakine committed Aug 6, 2024
1 parent dda2898 commit 81b795d
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 19 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,32 @@ jobs:
run: ./bin/hermit env -r >> $GITHUB_ENV
- name: Test
run: gradle clean test --info
verify_new:
name: Verify Plugin Against Latest Releases
runs-on: ubuntu-latest
strategy:
matrix:
release_type: [ release, eap ]
env:
RELEASE_TYPE: ${{ matrix.release_type }}
VERIFY_VERSIONS: new
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Init Hermit
run: ./bin/hermit env -r >> $GITHUB_ENV
- name: Plugin verification
run: gradle clean verifyPlugin
verify_old:
name: Verify Plugin Against Old Releases
runs-on: ubuntu-latest
env:
RELEASE_TYPE: release
VERIFY_VERSIONS: old
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Init Hermit
run: ./bin/hermit env -r >> $GITHUB_ENV
- name: Plugin verification
run: gradle clean verifyPlugin
45 changes: 26 additions & 19 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ val products = listOf(
)
val product = products.first { it.releaseType == (System.getenv("RELEASE_TYPE") ?: "release") }

val verifyOldVersions = System.getenv("VERIFY_VERSIONS") == "old"

val kotlinVersion = "1.9.25"
val arrowVersion = "0.11.0"

Expand Down Expand Up @@ -108,26 +110,31 @@ intellijPlatform {
pluginVerification {
// These need to match the versions from
// https://data.services.jetbrains.com/products?fields=code,name,releases.downloads,releases.version,releases.build,releases.type&code=IIC,IIE,GO
ides {
select {
types = listOf(IntelliJPlatformType.IntellijIdeaUltimate)
sinceBuild = project.properties["IIC.from.version"] as String
untilBuild = project.properties["IIC.from.version"] as String
}
select {
types = listOf(IntelliJPlatformType.IntellijIdeaUltimate)
sinceBuild = product.intellijVersion
untilBuild = product.intellijVersion
}
select {
types = listOf(IntelliJPlatformType.GoLand)
sinceBuild = project.properties["GO.from.version"] as String
untilBuild = project.properties["GO.from.version"] as String
if (verifyOldVersions) {
ides {
select {
types = listOf(IntelliJPlatformType.IntellijIdeaUltimate)
sinceBuild = project.properties["IIC.from.version"] as String
untilBuild = project.properties["IIC.from.version"] as String
}
select {
types = listOf(IntelliJPlatformType.GoLand)
sinceBuild = project.properties["GO.from.version"] as String
untilBuild = project.properties["GO.from.version"] as String
}
}
select {
types = listOf(IntelliJPlatformType.GoLand)
sinceBuild = product.golandVersion
untilBuild = product.golandVersion
} else {
ides {
select {
types = listOf(IntelliJPlatformType.IntellijIdeaUltimate)
sinceBuild = product.intellijVersion
untilBuild = product.intellijVersion
}
select {
types = listOf(IntelliJPlatformType.GoLand)
sinceBuild = product.golandVersion
untilBuild = product.golandVersion
}
}
}
}
Expand Down

0 comments on commit 81b795d

Please sign in to comment.