Enable tests on PRs
It only executes unit tests. Checkstyle and Spring Java Format are executed.
This commit is contained in:
committed by
Christian Tzolov
parent
6ab7e20616
commit
67eee8a43b
25
.github/workflows/pr-check.yml
vendored
Normal file
25
.github/workflows/pr-check.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: PR Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build branch
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: 'maven'
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
./mvnw test
|
||||
Reference in New Issue
Block a user