Skip to content

Commit 7434e2a

Browse files
committed
Add running test on PR via GitHub actions
1 parent ebb9065 commit 7434e2a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/pullRequest.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: pullRequest.yml
2+
on:
3+
pull_request:
4+
types: [opened, edited, synchronize, reopened]
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # tag: v4
12+
13+
- name: Set up JDK
14+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # tag: v4
15+
with:
16+
distribution: 'temurin'
17+
java-version: '21'
18+
19+
- name: Set up Gradle
20+
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # tag: v2
21+
22+
- name: Clean Build with Gradle
23+
run: ./gradlew clean build

0 commit comments

Comments
 (0)