Skip to content

Commit 5de7018

Browse files
committed
ci: add dedicated PR verification workflow
1 parent 744c686 commit 5de7018

2 files changed

Lines changed: 35 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: CI & Integration Tests
1+
name: CI
22

33
on:
44
push:
55
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
86

97
permissions:
108
contents: read

‎.github/workflows/pr.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: PR Verification
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
types: [opened, synchronize, reopened]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
verify:
13+
name: Build & Test (Java ${{ matrix.java-version }})
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
java-version: ['25', '26']
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Amazon Corretto ${{ matrix.java-version }}
24+
uses: actions/setup-java@v4
25+
with:
26+
distribution: 'corretto'
27+
java-version: ${{ matrix.java-version }}
28+
cache: 'maven'
29+
30+
- name: Check Code Formatting (Spotless)
31+
run: mvn --batch-mode spotless:check
32+
33+
- name: Run Tests and Verifications
34+
run: mvn --batch-mode clean verify

0 commit comments

Comments
 (0)