Skip to content

Commit c064fb8

Browse files
authored
feat(kotlin): add kotlin ci (#2176)
<!-- **Thanks for contributing to Fury.** **If this is your first time opening a PR on fury, you can refer to [CONTRIBUTING.md](https://github.com/apache/fury/blob/main/CONTRIBUTING.md).** Contribution Checklist - The **Apache Fury (incubating)** community has restrictions on the naming of pr titles. You can also find instructions in [CONTRIBUTING.md](https://github.com/apache/fury/blob/main/CONTRIBUTING.md). - Fury has a strong focus on performance. If the PR you submit will have an impact on performance, please benchmark it first and provide the benchmark result here. --> ## What does this PR do? Add fury kotlin github CI 8 <!-- Describe the purpose of this PR. --> ## Related issues relate #2174 <!-- Is there any related issue? Please attach here. - #xxxx0 - #xxxx1 - #xxxx2 --> ## Does this PR introduce any user-facing change? <!-- If any user-facing interface changes, please [open an issue](https://github.com/apache/fury/issues/new/choose) describing the need to do so and update the document if necessary. --> - [ ] Does this PR introduce any public API change? - [ ] Does this PR introduce any binary protocol compatibility change? ## Benchmark <!-- When the PR has an impact on performance (if you don't know whether the PR will have an impact on performance, you can submit the PR first, and if it will have impact on performance, the code reviewer will explain it), be sure to attach a benchmark data here. -->
1 parent fd85941 commit c064fb8

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/ci.yml

+20
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,26 @@ jobs:
136136
shell: bash
137137
run: ./ci/run_ci.sh graalvm_test
138138

139+
kotlin:
140+
name: Kotlin CI
141+
runs-on: ubuntu-latest
142+
env:
143+
MY_VAR: "PATH"
144+
strategy:
145+
matrix:
146+
java-version: ["8"]
147+
steps:
148+
- uses: actions/checkout@v4
149+
- name: Set up JDK ${{ matrix.java-version }}
150+
uses: actions/setup-java@v4
151+
with:
152+
java-version: ${{ matrix.java-version }}
153+
distribution: "temurin"
154+
- name: Install fury java
155+
run: cd java && mvn -T10 --no-transfer-progress clean install -DskipTests && cd -
156+
- name: Run Kotlin CI
157+
run: ./ci/run_ci.sh kotlin
158+
139159
scala:
140160
name: Scala CI
141161
runs-on: ubuntu-latest

ci/run_ci.sh

+15
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,18 @@ jdk17_plus_tests() {
162162
echo "Executing latest_jdk_tests succeeds"
163163
}
164164

165+
kotlin_tests() {
166+
echo "Executing fury kotlin tests"
167+
cd "$ROOT/kotlin"
168+
set +e
169+
mvn -T16 --batch-mode --no-transfer-progress test -DfailIfNoTests=false
170+
testcode=$?
171+
if [[ $testcode -ne 0 ]]; then
172+
exit $testcode
173+
fi
174+
echo "Executing fury kotlin tests succeeds"
175+
}
176+
165177
windows_java21_test() {
166178
java -version
167179
echo "Executing fury java tests"
@@ -205,6 +217,9 @@ case $1 in
205217
java21)
206218
jdk17_plus_tests
207219
;;
220+
kotlin)
221+
kotlin_tests
222+
;;
208223
windows_java21)
209224
windows_java21_test
210225
;;

0 commit comments

Comments
 (0)