2024-03-15 14:37:08 +01:00
|
|
|
name: Java CI with Gradle
|
2021-09-19 00:19:46 +02:00
|
|
|
on: [ pull_request, push ]
|
2021-01-03 21:21:58 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-10-13 22:10:21 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2021-01-03 21:21:58 +01:00
|
|
|
steps:
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Checkout Repository
|
2023-09-21 19:57:20 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Validate Gradle Wrapper
|
2024-04-13 00:20:43 +02:00
|
|
|
uses: gradle/actions/wrapper-validation@v3
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Set up JDK 17
|
2023-12-17 03:31:17 +01:00
|
|
|
uses: actions/setup-java@v4
|
2021-01-03 21:21:58 +01:00
|
|
|
with:
|
2022-10-13 22:18:19 +02:00
|
|
|
distribution: 'temurin'
|
|
|
|
java-version: 17
|
2023-09-21 19:57:20 +02:00
|
|
|
check-latest: true
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Cache Dependencies
|
2024-01-20 23:21:14 +01:00
|
|
|
uses: actions/cache@v4
|
2021-05-06 01:38:09 +02:00
|
|
|
with:
|
2021-09-19 00:19:46 +02:00
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Build with Gradle
|
2022-05-22 19:17:14 +02:00
|
|
|
run: ./gradlew build
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Upload Artifacts
|
2023-12-17 03:31:17 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-01-03 21:21:58 +01:00
|
|
|
with:
|
|
|
|
name: Artifacts
|
2021-03-30 13:51:53 +02:00
|
|
|
path: build/libs/
|