New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin version configured from GitHub Actions workflow is not correctly applied #1048
Comments
|
Good spot! Removing The dependencies versions handling was never tidied up after the big refactoring in #855 I've made a PR - let's see if the tests pass... |
Kotlin-IR will be removed in #1153, but the main issue persist: |
@Raibaz is this really meant to be used on CI? I'm wondering what was this trying to achieve as we can only ship a single artifact, targeting a single Kotlin version 🤔 |
Yep it was meant to be used on CI to make sure master was building fine and tests were passing against several different Kotlin versions; specifically the tests in clientTests, which depend on MockK as if they were a client project. It is true we ship a single artifact targeting a single Kotlin version, but we also want to ensure backwards compatibility with older versions, and that was what I was trying to ensure on CI. Usage of This being said, we can probably live without |
Understood. Then maybe we should simply take advantage of the Kotlin BoM and only provide the version once. I'll try to come up with something unless you have a specific solution in mind. |
I don't have a specific solution in mind, so any help on this (as on any other topic) is greatly appreciated <3 |
CI uses the following matrix to test Kotlin versions:
mockk/.github/workflows/gradle.yml
Line 20 in 6c7a06c
and propagate them as Gradle project properties:
mockk/.github/workflows/gradle.yml
Line 41 in 6c7a06c
MockK uses this property here:
mockk/buildSrc/src/main/kotlin/buildsrc/config/Deps.kt
Line 6 in 6c7a06c
but this method is unused in this project.
And therefore I suspect all jobs are using the same Kotlin version.
Also, I tried to run the same command as in the workflow but with an invalid Kotlin version, and it still ran the tests sucessfully:
The text was updated successfully, but these errors were encountered: