Skip to content

Commit e721765

Browse files
authored
Fix #593: only test against different kotlin-core versions; build using default (#594)
1 parent 532db62 commit e721765

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,18 @@ jobs:
4343
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
4444
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
4545
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
46+
4647
- name: Build
47-
run: ./mvnw -B -q -ff -ntp -Dversion.kotlin=${{ matrix.kotlin_version }} verify
48+
# Note: build separately first using default kotlin-core
49+
run: ./mvnw -B -q -ff -ntp -DskipTests clean package
50+
- name: Test
51+
# Note: actual testing should use matrix kotlin-core version (note: MUST specify test phase)
52+
run: ./mvnw -B -q -ff -ntp -Dversion.kotlin=${{ matrix.kotlin_version }} surefire:test
4853
- name: Extract project Maven version
4954
id: projectVersion
5055
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
5156
- name: Deploy snapshot
52-
if: github.event_name != 'pull_request' && matrix.java_version == '8' && matrix.kotlin_version == '1.6.21' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
57+
if: github.event_name != 'pull_request' && matrix.java_version == '8' && matrix.kotlin_version == '1.5.32' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
5358
env:
5459
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
5560
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}

0 commit comments

Comments
 (0)