|
@@ -5,14 +5,15 @@ on:
|
|
|
branches: [ main ]
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
|
-
|
|
|
|
|
build:
|
|
build:
|
|
|
-
|
|
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- - uses: actions/checkout@v3
|
|
|
|
|
- - name: Build jar
|
|
|
|
|
- run: chmod +x ./mvnw && ./mvnw clean jar:jar
|
|
|
|
|
- - name: Run tests
|
|
|
|
|
- run: ./mvnw test
|
|
|
|
|
|
|
+ - uses: actions/checkout@v3
|
|
|
|
|
+ - name: Set up JDK
|
|
|
|
|
+ uses: actions/setup-java@v3
|
|
|
|
|
+ with:
|
|
|
|
|
+ java-version: '17' # or the version you use
|
|
|
|
|
+ distribution: 'temurin' # or another distribution
|
|
|
|
|
+ - name: Build with Maven
|
|
|
|
|
+ run: chmod +x ./mvnw && ./mvnw clean package
|