diff --git a/.gitea/workflows/gradle-publish.yaml b/.gitea/workflows/gradle-publish.yaml index 46acead..9a2d921 100644 --- a/.gitea/workflows/gradle-publish.yaml +++ b/.gitea/workflows/gradle-publish.yaml @@ -5,33 +5,36 @@ on: branches: [master] jobs: - Gradle Test: - - name: Checkout code - uses: actions/checkout@v4 + Gradle-Test: + runs-on: ubuntu-latest - - name: Set up JDK - uses: actions/setup-java@v4 - with: - java-version: '23' - check-latest: true - distribution: 'zulu' + steps: + - name: Checkout code + uses: actions/checkout@v4 - - name: Setup Gradle + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '23' + check-latest: true + distribution: 'zulu' + + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 with: add-job-summary: always cache-cleanup: on-success - - name: Cache Gradle dependencies - uses: actions/cache@v4 - with: - path: | - ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- + - name: Cache Gradle dependencies + uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- - - name: Publish - env: - GITEA_TOKEN: {{ secrets.PUBLISH_PACKAGE_TOKEN }} - run: chmod +x gradlew; ./gradlew publishAllPublicationsToGiteaRepository \ No newline at end of file + - name: Publish + env: + GITEA_TOKEN: {{ secrets.PUBLISH_PACKAGE_TOKEN }} + run: chmod +x gradlew; ./gradlew publishAllPublicationsToGiteaRepository \ No newline at end of file diff --git a/.gitea/workflows/gradle-test.yaml b/.gitea/workflows/gradle-test.yaml index 98410a5..bdadc11 100644 --- a/.gitea/workflows/gradle-test.yaml +++ b/.gitea/workflows/gradle-test.yaml @@ -4,41 +4,44 @@ on: push: jobs: - Gradle Test: - - name: Checkout code - uses: actions/checkout@v4 + Gradle-Test: + runs-on: ubuntu-latest - - name: Set up JDK - uses: actions/setup-java@v4 - with: - java-version: '23' - check-latest: true - distribution: 'zulu' - - - name: Setup Gradle + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '23' + check-latest: true + distribution: 'zulu' + + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 with: add-job-summary: always cache-cleanup: on-success - - name: Cache Gradle dependencies - uses: actions/cache@v4 - with: - path: | - ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- + - name: Cache Gradle dependencies + uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- - - name: Test - env: - DISCORD_TEST_TOKEN: {{ secrets.DISCORD_TOKEN }} - run: chmod +x gradlew; ./gradlew test + - name: Test + env: + DISCORD_TEST_TOKEN: {{ secrets.DISCORD_TOKEN }} + run: chmod +x gradlew; ./gradlew test - - name: Publish Test Results - if: always() - uses: dorny/test-reporter@v1 - with: - name: Test Results - path: build/test-results/test/*.xml - reporter: junit \ No newline at end of file + - name: Publish Test Results + if: always() + uses: dorny/test-reporter@v1 + with: + name: Test Results + path: build/test-results/test/*.xml + reporter: junit \ No newline at end of file