Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
bgalek committed Apr 25, 2024
1 parent 26cc8c6 commit 68dc061
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 68dc061

Please sign in to comment.