Skip to content

Commit 3a2db38

Browse files
committed
feat: added workflow on pr
1 parent 2b3446e commit 3a2db38

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/on-pr.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: On Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: macos-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up JDK 23
14+
uses: actions/setup-java@v4
15+
with:
16+
distribution: oracle
17+
java-version: 23
18+
19+
- name: Cache Maven packages
20+
uses: actions/cache@v4
21+
with:
22+
path: ~/.m2/repository
23+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
24+
restore-keys: |
25+
${{ runner.os }}-maven-
26+
27+
- name: Build
28+
run: mvn clean -q compile

0 commit comments

Comments
 (0)