Skip to content

Commit daef0f2

Browse files
committed
add custom workflow for PRs
1 parent eed125f commit daef0f2

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Build
22
on:
33
push:
4-
pull_request_target:
5-
types: [labeled]
4+
65
jobs:
76
build:
87
name: Build and Test

.github/workflows/pullrequest.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
6+
env:
7+
JAVA_DIST: 'temurin'
8+
JAVA_VERSION: 24
9+
10+
defaults:
11+
run:
12+
shell: bash
13+
14+
jobs:
15+
test:
16+
name: Compile and Test
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-java@v4
21+
with:
22+
distribution: ${{ env.JAVA_DIST }}
23+
java-version: ${{ env.JAVA_VERSION }}
24+
cache: 'maven'
25+
- name: Build and Test
26+
id: buildAndTest
27+
run: mvn -B clean verify

0 commit comments

Comments
 (0)