2020-04-20 13:28:42 +02:00
|
|
|
name: Java CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-07-28 23:33:33 +02:00
|
|
|
- uses: actions/checkout@v3
|
2020-04-20 13:28:42 +02:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-08-01 23:21:32 +02:00
|
|
|
fetch-depth: 0 # needed for versioning
|
2023-09-27 23:50:42 +02:00
|
|
|
- name: Set up Java
|
|
|
|
uses: actions/setup-java@v3
|
2020-04-20 13:28:42 +02:00
|
|
|
with:
|
2023-09-27 23:50:42 +02:00
|
|
|
distribution: 'temurin'
|
2022-01-16 14:25:15 +01:00
|
|
|
java-version: 11
|
2023-09-27 23:50:42 +02:00
|
|
|
cache: 'gradle'
|
2020-04-20 13:28:42 +02:00
|
|
|
- name: Build with Gradle
|
2022-07-28 23:33:33 +02:00
|
|
|
run: ./gradlew clean build test
|
2020-04-20 13:28:42 +02:00
|
|
|
- uses: actions/upload-artifact@v2-preview
|
|
|
|
with:
|
|
|
|
name: artifact
|
|
|
|
path: build/libs/*
|