Skip to content

Commit 9e32ada

Browse files
ci: add test workflow
1 parent b5159d1 commit 9e32ada

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/test.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test Kotlin/JVM
2+
on:
3+
workflow_dispatch:
4+
push:
5+
pull_request:
6+
7+
permissions: {}
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: "Check out PR branch"
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
persist-credentials: false
18+
fetch-depth: 0
19+
20+
- name: "Cache"
21+
uses: actions/cache@v3
22+
with:
23+
path: |
24+
~/.cargo/registry
25+
~/.cargo/git
26+
./target
27+
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
28+
29+
- name: "Set up JDK"
30+
uses: actions/setup-java@v4
31+
with:
32+
distribution: temurin
33+
java-version: 17
34+
35+
- name: "Run JVM tests"
36+
run: |
37+
bash ./scripts/build-linux-x86_64.sh
38+
./gradlew test -P excludeConnectedTests
39+
./gradlew :examples:build

0 commit comments

Comments
 (0)