2024-08-19 20:39:58 +02:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: git.staropensource.de/staropensource/actions-docker:latest
|
|
|
|
steps:
|
|
|
|
- name: Hello World!
|
|
|
|
run: echo "Hello World!"
|
2024-08-19 20:50:27 +02:00
|
|
|
caching:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: git.staropensource.de/staropensource/actions-docker:java
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
|
|
|
- name: Restore Gradle cache
|
|
|
|
uses: actions/cache/restore@v4
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
gradle-${{ runner.os }}-
|
|
|
|
- name: Compile and run example
|
2024-08-19 20:51:27 +02:00
|
|
|
run: ./gradlew --no-daemon run
|
2024-08-19 20:50:27 +02:00
|
|
|
- name: Save Gradle cache
|
|
|
|
uses: actions/cache/save@v4
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
gradle-${{ runner.os }}-
|