mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-02-12 00:31:27 +01:00
Update gradle.yml
This commit is contained in:
parent
7b137bf5dc
commit
251b28fa43
48
.github/workflows/gradle.yml
vendored
48
.github/workflows/gradle.yml
vendored
@ -31,51 +31,3 @@ jobs:
|
||||
run: ./gradlew build -x test --warning-mode all
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: "**/build/libs"
|
||||
|
||||
test:
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
|
||||
- name: Cache Gradle
|
||||
id: cache-gradle
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.gradle
|
||||
key: ${{ runner.os }}-gradle
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Grant execute permission to gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew test --warning-mode all
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create Coverage
|
||||
run: ./gradlew jacocoTestReport
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload CodeCov Report
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
file: "**/build/reports/jacoco/**/*.xml"
|
||||
|
||||
- name: Publish Unit Test Results
|
||||
uses: EnricoMi/publish-unit-test-result-action@v1.24
|
||||
if: always()
|
||||
with:
|
||||
files: "**/build/test-results/**/*.xml"
|
||||
|
Loading…
Reference in New Issue
Block a user