Skip to content

Commit b16c970

Browse files
committed
Add a default CI
1 parent af4b4e7 commit b16c970

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
types: [ ready_for_review, opened, reopened, synchronize ]
7+
push:
8+
branches: [ main ]
9+
# Cancel in-progress runs for the same PR/branch
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build:
16+
name: Build
17+
runs-on: ubuntu-latest
18+
if: github.event.pull_request.draft == false
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v6
23+
24+
- name: Set up JDK
25+
uses: actions/setup-java@v5
26+
with:
27+
distribution: temurin
28+
java-version: 25
29+
30+
- name: Setup Gradle
31+
uses: gradle/actions/setup-gradle@v5
32+
with:
33+
cache-read-only: ${{ github.event_name == 'pull_request' }}
34+
35+
- name: Build and test
36+
run: ./gradlew build --no-daemon

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ bin/
4545
.metals
4646
.bloop
4747

48+
.claude
4849
CLAUDE.md

0 commit comments

Comments
 (0)