2021-01-03 21:21:58 +01:00
|
|
|
# Automatically build the project and run any configured tests for every push
|
|
|
|
# and submitted pull request. This can help catch issues that only occur on
|
|
|
|
# certain platforms or Java versions, and provides a first line of defence
|
|
|
|
# against bad commits.
|
|
|
|
|
|
|
|
name: build
|
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:
|
2022-10-13 22:10:21 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-java@v3
|
2021-01-03 21:21:58 +01:00
|
|
|
with:
|
2021-11-17 23:07:12 +01:00
|
|
|
java-version: 17
|
2022-10-13 22:10:21 +02:00
|
|
|
- uses: actions/cache@v3
|
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-
|
2021-01-03 21:21:58 +01:00
|
|
|
- name: build
|
2022-05-22 19:17:14 +02:00
|
|
|
run: ./gradlew build
|
2022-10-13 22:10:21 +02:00
|
|
|
- uses: actions/upload-artifact@v3
|
2021-01-03 21:21:58 +01:00
|
|
|
with:
|
|
|
|
name: Artifacts
|
2021-03-30 13:51:53 +02:00
|
|
|
path: build/libs/
|