forked from StarOpenSource/Engine
Compare commits
3 commits
a98cc53b41
...
294137603f
Author | SHA1 | Date | |
---|---|---|---|
294137603f | |||
fbbf7094c7 | |||
c8cf0d7437 |
1 changed files with 12 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
#name: build-and-test
|
||||
name: build-and-test
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
|
@ -8,14 +8,12 @@ jobs:
|
|||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: git.staropensource.de/staropensource/actions-docker:latest
|
||||
image: git.staropensource.de/staropensource/actions-docker:java
|
||||
steps:
|
||||
- name: Install latest OpenJDK release
|
||||
run: pacman -S --noconfirm jdk-openjdk
|
||||
- name: Checkout
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- name: Compile
|
||||
run: ./gradlew build
|
||||
run: ./gradlew --no-daemon jar javadocJar sourceJar
|
||||
- name: Upload library JARs
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
|
@ -39,3 +37,12 @@ jobs:
|
|||
path: |
|
||||
**/build/libs/*-source.jar
|
||||
if-no-files-found: error
|
||||
test:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: git.staropensource.de/staropensource/actions-docker:java
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- name: Run tests
|
||||
run: ./gradlew --no-daemon test
|
||||
|
|
Loading…
Reference in a new issue