Skip to content

Commit 9a91eeb

Browse files
brody-0125claude
andauthored
ci: add GitHub Actions workflow for build and test (#6)
Runs ./gradlew build on every push and pull request using Temurin JDK 17, matching the version enforced in build.gradle.kts and jitpack.yml. Uses gradle/actions/setup-gradle for dependency and wrapper caching, and a concurrency group to cancel superseded runs on the same ref. https://claude.ai/code/session_01H1ckRKNGs7ffbVSUZua7zD Co-authored-by: Claude <noreply@anthropic.com>
1 parent 449c789 commit 9a91eeb

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
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
concurrency:
8+
group: ci-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
build:
13+
name: Build & Test (JDK 17)
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: temurin
24+
java-version: '17'
25+
26+
- name: Set up Gradle
27+
uses: gradle/actions/setup-gradle@v4
28+
29+
- name: Make gradlew executable
30+
run: chmod +x ./gradlew
31+
32+
- name: Build and test
33+
run: ./gradlew build --no-daemon --stacktrace

0 commit comments

Comments
 (0)