From 68dc061bebe44a0440c313240af395b836fceedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Ga=C5=82ek?= Date: Thu, 25 Apr 2024 21:28:25 +0200 Subject: [PATCH] test update --- .../tech/build/axion/release/SimpleIntegrationTest.groovy | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/integration/groovy/pl/allegro/tech/build/axion/release/SimpleIntegrationTest.groovy b/src/integration/groovy/pl/allegro/tech/build/axion/release/SimpleIntegrationTest.groovy index d31016aa..e9137670 100644 --- a/src/integration/groovy/pl/allegro/tech/build/axion/release/SimpleIntegrationTest.groovy +++ b/src/integration/groovy/pl/allegro/tech/build/axion/release/SimpleIntegrationTest.groovy @@ -39,7 +39,7 @@ class SimpleIntegrationTest extends BaseIntegrationTest { result.task(":currentVersion").outcome == TaskOutcome.SUCCESS } - def "should define an github output when plugin is applied in project during github workflow"() { + def "should define an github output when running release task in github workflow context"() { given: def outputFile = File.createTempFile("github-outputs", ".tmp") environmentVariablesRule.set("GITHUB_ACTIONS", "true") @@ -48,11 +48,10 @@ class SimpleIntegrationTest extends BaseIntegrationTest { buildFile('') when: - def result = runGradle('currentVersion') + runGradle('release', '-Prelease.version=1.0.0', '-Prelease.localOnly', '-Prelease.disableChecks') then: - outputFile.getText().contains('current-version=0.1.0-SNAPSHOT') - result.task(":currentVersion").outcome == TaskOutcome.SUCCESS + outputFile.getText().contains('current-version=1.0.0') cleanup: environmentVariablesRule.clear("GITHUB_ACTIONS", "GITHUB_OUTPUT")