Project now builds and runs unit tests, as well as linting with checkstyle. Co-authored-by: Josh Chester <numbers@softwaresmyth.com> Co-committed-by: Josh Chester <numbers@softwaresmyth.com>
23 lines
647 B
YAML
23 lines
647 B
YAML
name: Build with gradle
|
|
run-name: Building for ${{ gitea.actor }}
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
Build-with-gradle:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '22'
|
|
cache: 'gradle'
|
|
# cache-dependency-path: | # optional
|
|
# sub-project/*.gradle*
|
|
# sub-project/**/gradle-wrapper.properties
|
|
- run: ./gradlew test --no-daemon
|
|
- run: ./gradlew publishAllPublicationsToGiteaRepository -PgradleKey=${{ secrets.GRADLE_KEY }} --no-daemon |