Skip to content

Commit 207c9c4

Browse files
committed
Add test workflow
1 parent c1c2ad5 commit 207c9c4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
# Only run on PRs if the source branch is on someone else's repo
11+
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'temurin'
20+
java-version: 21
21+
check-latest: true
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@v4
24+
- name: Build with Gradle
25+
run: ./gradlew test --stacktrace

0 commit comments

Comments
 (0)