-
-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (39 loc) · 960 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build & Test
on:
pull_request:
types:
- opened
- edited
- synchronize
- labeled
- unlabeled
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
preflight:
runs-on: ubuntu-latest
steps:
- uses: thehanimo/pr-title-checker@v1.4.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: .github/pr-title-checker-config.json
build:
name: Build & Test
runs-on: ubuntu-latest
needs: preflight
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Biuld Package
run: mvn clean compile
- name: Run Tests
run: mvn test
- name: Checkstyle
run: mvn verify -DskipTests=true