

Run: kotlin /path/in/repo/to/Īnd here is an example file: java.io.File main.kts scripts like this: name: Example Refer to the GitHub Actions runner images 1 to see all the installed software. Kotlin runner is now pre-installed on GitHub Actions environments ( GitHub issue, YouTube video). Note that if the script has the execute ( x) permission, as I told previously, you can remove the kotlinc -script part and it will still run.īonus: it is possible to have Kotlin code directly in the workflow file (though I'd not recommend doing it), by using kotlin as a shell. workflow file) that will take an input and pass it to your Kotlin script (usable in the args property/parameter) after it installed Kotlin: name: Run Kotlin script If you add the execute permission to the file ( chmod +x on Linux/macOS), you'll also be able to run it just like any other script, without having to type kotlinc -script before, and that will apply on GitHub Actions as well.įinally, here's an example manual GitHub Action (aka. That will be helpful to test the script locally before running in CI, as the IDE will show a run button in the gutter, next to the shebang. Second, ensure that its first line is the shebang pointing to the right place: #!/usr/bin/env kotlin IntelliJ IDEA, Android Studio), especially when it comes to autocompletion and type analysis. main.kts as that latter one will be recognized better by the IDE (e.g. You can review our Android test to get a sense of our Android questions.UPDATE: Kotlin is now pre-installed on GitHub Actions runners, no need to install it beforehand anymore.įirst, ensure that you have a proper Kotlin script, ending in.

If you would like to test Android skills, then we design a custom test to evaluate Kotlin and Android skills in the same assessment. The Kotlin Online test is designed to test for Kotlin fundamentals and hands-on coding skills. Coroutines and asynchronous programming.Standard functions and extension functions.Class types (Data, Enum, Sealed, Nested).Object-oriented programming principles (Classes, objects, inheritance, polymorphism, abstraction, encapsulation).Lambdas and higher-order functions (common higher-order functions).Kotlin fundamentals (variables, strings, operators).The Adaface Kotlin test screens candidates for the typical skills recruiters look for in a Kotlin developer: It reduces the administrative overhead of interviewing too many candidates and saves expensive engineering time by filtering out unqualified candidates. The Kotlin Online test helps recruiters and hiring managers identify qualified candidates from a pool of resumes, and helps in taking objective hiring decisions.
