diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index d5fc2e7c35..f6e447c4ee 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -84,10 +84,11 @@ jobs: # # Output Variables: # - buildScanUri - - name: Build with Gradle - id: gradle_build - working-directory: mekhq - run: ./gradlew -I .github/build-scan-init.gradle build --stacktrace --scan + - name: Build with Gradle + uses: gradle/gradle-build-action@v2 + with: + arguments: clean build --stacktrace --scan + build-root-directory: mekhq # If the build step fails, try to upload any test logs in case it was a unit test failure. # diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml index 3cb1e7181d..f5aabe23ef 100644 --- a/.github/workflows/nightly-ci.yml +++ b/.github/workflows/nightly-ci.yml @@ -76,8 +76,10 @@ jobs: # Include --stacktrace to make some build failures easier to figure out. - name: Build with Gradle - working-directory: mekhq - run: ./gradlew -I .github/build-scan-init.gradle build -x test --continue --stacktrace --scan + uses: gradle/gradle-build-action@v2 + with: + arguments: clean build -x test --continue --stacktrace --scan + build-root-directory: mekhq - name: Upload Test Logs on Failure uses: actions/upload-artifact@v2.2.4 diff --git a/.github/workflows/nightly-maven-ci.yml b/.github/workflows/nightly-maven-ci.yml index e6af589245..1bd83a6e7d 100644 --- a/.github/workflows/nightly-maven-ci.yml +++ b/.github/workflows/nightly-maven-ci.yml @@ -67,9 +67,11 @@ jobs: if: runner.os != 'Windows' # Include --stacktrace to make some build failures easier to figure out. - - name: Build with Gradle - working-directory: mekhq - run: ./gradlew -I .github/build-scan-init.gradle build --continue --stacktrace --scan + - name: Build with Gradle + uses: gradle/gradle-build-action@v2 + with: + arguments: clean build --continue --stacktrace --scan + build-root-directory: mekhq - name: Upload Test Logs on Failure uses: actions/upload-artifact@v2.2.4