Skip to content

Commit 0b999ae

Browse files
committed
have the tests pass on the releaseVersion we are testing
1 parent c573c02 commit 0b999ae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/default-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,14 @@ jobs:
147147
run: |
148148
cd "${{env.TEMP_DIR}}"
149149
./gradlew -version
150+
- name: Extract plugin version for testing
151+
id: plugin_version
152+
run: |
153+
PLUGIN_VERSION=$(grep 'def releaseVersion = ' build.gradle | sed 's/.*"\(.*\)".*/\1/')
154+
echo "version=$PLUGIN_VERSION" >> $GITHUB_OUTPUT
150155
- name: Run the local testversion with Gradle
151156
run: |
152157
cd "${{env.TEMP_DIR}}"
153-
./gradlew clean build --rerun-tasks
158+
./gradlew clean build --rerun-tasks -PpluginTestVersion=${{ steps.plugin_version.outputs.version }}
154159
- name: Validate if the testversion has produced the desired output
155160
run: /bin/bash -c '[[ -f "${{env.TEMP_DIR}}"/build/git.properties ]] && cat "${{env.TEMP_DIR}}"/build/git.properties || exit 1;'

0 commit comments

Comments
 (0)