From b7d1b397f3f858783976f2a098bb92b6d0837360 Mon Sep 17 00:00:00 2001 From: Michal Bednarz Date: Fri, 13 Nov 2020 13:52:14 +0100 Subject: [PATCH] Change timeout for test suites --- .github/workflows/release.yml | 1 - .github/workflows/test.yml | 18 +++++++++++++++--- .../virtuslab/ideprobe/ProbeDriverTest.scala | 8 ++++---- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a419c539..c9fc7c4d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,6 @@ on: push: branches: - master - - 2020.3 tags: - '**' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98ad349f..bb72c520 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,13 +4,25 @@ on: pull_request jobs: test: - timeout-minutes: 120 + timeout-minutes: 50 runs-on: ubuntu-latest name: test-${{ matrix.type }} strategy: matrix: - type: [probe 2.12.10, probe 2.13.1, scala 2.13.1, examples 2.13.1] + type: [probe 2.12.10, probe 2.13.1, scala 2.13.1] + steps: + - uses: actions/checkout@v2 + - name: generate scripts + run: sbt ci/generateScripts + - name: build image + run: sh ci/tests/build_image + - name: test + run: sh ci/tests/run ${{ matrix.type }} + examples: + timeout-minutes: 120 + runs-on: ubuntu-latest + name: test-examples 2.13.1 steps: - uses: actions/checkout@v2 - name: generate scripts @@ -18,4 +30,4 @@ jobs: - name: build image run: sh ci/tests/build_image - name: test - run: sh ci/tests/run ${{ matrix.type }} \ No newline at end of file + run: sh ci/tests/run examples 2.13.1 \ No newline at end of file diff --git a/driver/tests/src/test/scala/org/virtuslab/ideprobe/ProbeDriverTest.scala b/driver/tests/src/test/scala/org/virtuslab/ideprobe/ProbeDriverTest.scala index 1e0f6e5a..0fa46dbd 100644 --- a/driver/tests/src/test/scala/org/virtuslab/ideprobe/ProbeDriverTest.scala +++ b/driver/tests/src/test/scala/org/virtuslab/ideprobe/ProbeDriverTest.scala @@ -102,7 +102,7 @@ final class ProbeDriverTest extends IdeProbeFixture with Assertions with RobotPl @Test def expandsMacro(): Unit = fixture.copy(workspaceProvider = WorkspaceTemplate.FromResource("gradle-project")).run { intelliJ => - val projectRef = intelliJ.probe.withRobot.openProject(intelliJ.workspace) + val projectRef = intelliJ.probe.openProject(intelliJ.workspace) val fileExtension = intelliJ.probe .expandMacro("$FileExt$", FileRef(intelliJ.workspace.resolve("build.gradle"), projectRef)) @@ -132,7 +132,7 @@ final class ProbeDriverTest extends IdeProbeFixture with Assertions with RobotPl def listsModuleDependencies(): Unit = { fixture.copy(workspaceProvider = WorkspaceTemplate.FromResource("gradle-project")).run { intelliJ => val projectDir = intelliJ.workspace.resolve("build.gradle") - val p = intelliJ.probe.withRobot.openProject(projectDir) + val p = intelliJ.probe.openProject(projectDir) val testModule = intelliJ.probe.projectModel().modules.find(_.name == "foo.test").get assertEquals(Set(ModuleRef("foo.main", p)), testModule.dependencies) @@ -167,7 +167,7 @@ final class ProbeDriverTest extends IdeProbeFixture with Assertions with RobotPl def buildFilesTest(): Unit = { buildTestFixture.run { intelliJ => val projectDir = intelliJ.workspace.resolve("simple-sbt-project") - val project = intelliJ.probe.withRobot.openProject(projectDir) + val project = intelliJ.probe.openProject(projectDir) val compilingFile = projectDir.resolve("src/main/scala/Main.scala") val nonCompilingFile = projectDir.resolve("src/main/scala/Incorrect.scala") @@ -189,7 +189,7 @@ final class ProbeDriverTest extends IdeProbeFixture with Assertions with RobotPl .run { intelliJ => val projectDir = intelliJ.workspace.resolve("simple-sbt-project") - intelliJ.probe.withRobot.openProject(projectDir) + intelliJ.probe.openProject(projectDir) intelliJ.probe.build() val configuration = TestScope.Module(ModuleRef("simple-sbt-project"))