Skip to content

Commit

Permalink
Update tests in GitHub workflow
Browse files Browse the repository at this point in the history
The names of the test2ETests.testGradleProjects` has been replaced by `GradleTests`, and the `E2ETests.testMavenProjects` has been replaced by `MavenTest` in the "run" command within GitHub workflow. This change reflects updates in the projects' test structure.
  • Loading branch information
fscarponi committed Mar 7, 2024
1 parent cacfccb commit 93e6427
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
GRADLE_VERSION: ${{ matrix.gradle-version }}
GRADLE_ENTERPRISE_KEY: ${{ secrets.GRADLE_ENTERPRISE_KEY }}
JDK_VERSION: ${{matrix.jdk-version}}
run: ./gradlew :plugin:test --tests GradleTests
run: ./gradlew :plugin:test --tests *GradleTests
- name: Upload test result
if: steps.test.outcome == 'failure'
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
KMP: true
GRADLE_ENTERPRISE_KEY: ${{ secrets.GRADLE_ENTERPRISE_KEY }}
JDK_VERSION: ${{matrix.jdk-version}}
run: ./gradlew :plugin:test --tests MavenTest
run: ./gradlew :plugin:test --tests *MavenTest
- name: Upload test result
if: steps.test.outcome == 'failure'
uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions plugin/src/test/kotlin/GradleTests.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import com.esotericsoftware.kryo.kryo5.minlog.Log
import com.intellij.ide.starter.junit5.JUnit5StarterAssistant
import com.intellij.tools.ide.performanceTesting.commands.CommandChain
import com.intellij.tools.ide.performanceTesting.commands.exitApp
import com.intellij.tools.ide.performanceTesting.commands.waitForSmartMode
import com.jetbrains.packagesearch.plugin.tests.PKGS_TEST_DATA_OUTPUT_DIR
import com.jetbrains.packagesearch.plugin.tests.dumps.DumpPackageSearchModules
import com.jetbrains.packagesearch.plugin.utils.logWarn
import java.nio.file.Path
import kotlin.io.path.PathWalkOption
import kotlin.io.path.copyTo
Expand Down Expand Up @@ -96,7 +96,7 @@ private fun assertGradleCompatibility(): Boolean {
private fun patchGradleVersion(gradleVersion: String, projectDir: Path) {
val gradleProperties = projectDir.resolve("gradle/wrapper/gradle-wrapper.properties")
if (!gradleProperties.isRegularFile()) error("unable to find gradle wrapper properties file")
Log.warn("patching project's gradle version to $gradleVersion")
logWarn("patching project's gradle version to $gradleVersion")
gradleProperties.writeLines(
gradleProperties.readLines()
.map { line ->
Expand Down

0 comments on commit 93e6427

Please sign in to comment.