fix formatting
This commit is contained in:
parent
b371ea8520
commit
18d85edcf2
@ -5,33 +5,36 @@ on:
|
|||||||
branches: [master]
|
branches: [master]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Gradle Test:
|
Gradle-Test:
|
||||||
- name: Checkout code
|
runs-on: ubuntu-latest
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up JDK
|
steps:
|
||||||
uses: actions/setup-java@v4
|
- name: Checkout code
|
||||||
with:
|
uses: actions/checkout@v4
|
||||||
java-version: '23'
|
|
||||||
check-latest: true
|
|
||||||
distribution: 'zulu'
|
|
||||||
|
|
||||||
- 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
|
uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
with:
|
||||||
add-job-summary: always
|
add-job-summary: always
|
||||||
cache-cleanup: on-success
|
cache-cleanup: on-success
|
||||||
|
|
||||||
- name: Cache Gradle dependencies
|
- name: Cache Gradle dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: {{ secrets.PUBLISH_PACKAGE_TOKEN }}
|
GITEA_TOKEN: {{ secrets.PUBLISH_PACKAGE_TOKEN }}
|
||||||
run: chmod +x gradlew; ./gradlew publishAllPublicationsToGiteaRepository
|
run: chmod +x gradlew; ./gradlew publishAllPublicationsToGiteaRepository
|
@ -4,41 +4,44 @@ on:
|
|||||||
push:
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Gradle Test:
|
Gradle-Test:
|
||||||
- name: Checkout code
|
runs-on: ubuntu-latest
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up JDK
|
steps:
|
||||||
uses: actions/setup-java@v4
|
- name: Checkout code
|
||||||
with:
|
uses: actions/checkout@v4
|
||||||
java-version: '23'
|
|
||||||
check-latest: true
|
- name: Set up JDK
|
||||||
distribution: 'zulu'
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
- name: Setup Gradle
|
java-version: '23'
|
||||||
|
check-latest: true
|
||||||
|
distribution: 'zulu'
|
||||||
|
|
||||||
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v4
|
uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
with:
|
||||||
add-job-summary: always
|
add-job-summary: always
|
||||||
cache-cleanup: on-success
|
cache-cleanup: on-success
|
||||||
|
|
||||||
- name: Cache Gradle dependencies
|
- name: Cache Gradle dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
env:
|
env:
|
||||||
DISCORD_TEST_TOKEN: {{ secrets.DISCORD_TOKEN }}
|
DISCORD_TEST_TOKEN: {{ secrets.DISCORD_TOKEN }}
|
||||||
run: chmod +x gradlew; ./gradlew test
|
run: chmod +x gradlew; ./gradlew test
|
||||||
|
|
||||||
- name: Publish Test Results
|
- name: Publish Test Results
|
||||||
if: always()
|
if: always()
|
||||||
uses: dorny/test-reporter@v1
|
uses: dorny/test-reporter@v1
|
||||||
with:
|
with:
|
||||||
name: Test Results
|
name: Test Results
|
||||||
path: build/test-results/test/*.xml
|
path: build/test-results/test/*.xml
|
||||||
reporter: junit
|
reporter: junit
|
Loading…
x
Reference in New Issue
Block a user