Skip to content

Commit 57fa05e

Browse files
committed
ci: add yml to build and run tests
1 parent bb34312 commit 57fa05e

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI (Build & Test)
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "**" # or restrict to `main` if you prefer
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up JDK
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: temurin
21+
java-version: 17
22+
23+
- name: Cache Gradle
24+
uses: actions/cache@v4
25+
with:
26+
path: |
27+
~/.gradle/caches
28+
~/.gradle/wrapper
29+
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
30+
restore-keys: gradle-
31+
32+
- name: Run tests
33+
run: ./gradlew test --stacktrace

0 commit comments

Comments
 (0)