From f4a59a2201108b6433a1b6c75dedd763407c83ad Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 11 Nov 2024 15:45:40 -0500 Subject: [PATCH] Enable custom start commands and options to resolve GHA issues Signed-off-by: Peter Zhu --- .github/workflows/ci.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80ecbdaa..869f6b1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,15 +27,13 @@ jobs: # this image tag is subject to change as more dependencies and updates will arrive over time image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }} # need to switch to root so that github actions can install runner binary on container without permission issues. - options: --user root - - # Allow using Node16 actions - env: - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }} steps: + - name: Run start commands + run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }} - name: Checkout job-scheduler - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Java ${{ matrix.java }} uses: actions/setup-java@v1 with: @@ -48,11 +46,11 @@ jobs: su `id -un 1000` -c "./gradlew build && ./gradlew publishToMavenLocal" - name: Upload Coverage Report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: linux-JDK${{ matrix.java }}-reports @@ -72,7 +70,7 @@ jobs: steps: - name: Checkout job-scheduler - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Java ${{ matrix.java }} uses: actions/setup-java@v1 @@ -88,11 +86,11 @@ jobs: ./gradlew publishToMavenLocal - name: Upload Coverage Report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: macos-JDK${{ matrix.java }}-reports @@ -112,7 +110,7 @@ jobs: steps: - name: Checkout job-scheduler - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Java ${{ matrix.java }} uses: actions/setup-java@v1 @@ -128,11 +126,11 @@ jobs: ./gradlew.bat publishToMavenLocal - name: Upload Coverage Report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: windows-JDK${{ matrix.java }}-reports