diff options
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 81274d993..f404551d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ permissions: write-all jobs: build: runs-on: ubuntu-latest - + name: "Build and test" steps: - uses: actions/checkout@v3 - name: Set up JDK 17 @@ -25,18 +25,19 @@ jobs: java-version: 17 distribution: temurin cache: gradle - - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- + - name: Setup gradle + uses: gradle/gradle-build-action@v2 - name: Build with Gradle - run: ./gradlew build + run: ./gradlew build -x test --stacktrace - uses: actions/upload-artifact@v3 + name: Upload development build with: + name: "Development Build" path: build/libs/*.jar - - name: Stop gradle daemons - run: ./gradlew --stop + - name: Test with Gradle + run: ./gradlew test + - uses: actions/upload-artifact@v3 + name: "Upload test report" + with: + name: "Test Results" + path: build/reports/tests/test/ |