diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39a6f41429fd..a1cb3ad63dd9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,14 +4,15 @@ name: Build # Run this Build for all pushes / PRs to current branch -on: [push, pull_request] +on: [pull_request] +# on: [push, pull_request] permissions: contents: read # to fetch code (actions/checkout) jobs: tests: - runs-on: ubuntu-latest + runs-on: tenki-standard-autoscale env: # Give Maven 1GB of memory to work with MAVEN_OPTS: "-Xmx1024M" @@ -81,32 +82,32 @@ jobs: # Codecov upload is a separate job in order to allow us to restart this separate from the entire build/test # job above. This is necessary because Codecov uploads seem to randomly fail at times. # See https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954 - codecov: - # Must run after 'tests' job above - needs: tests - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 + # codecov: + # # Must run after 'tests' job above + # needs: tests + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v4 - # Download artifacts from previous 'tests' job - - name: Download coverage artifacts - uses: actions/download-artifact@v4 + # # Download artifacts from previous 'tests' job + # - name: Download coverage artifacts + # uses: actions/download-artifact@v4 - # Now attempt upload to Codecov using its action. - # NOTE: We use a retry action to retry the Codecov upload if it fails the first time. - # - # Retry action: https://github.com/marketplace/actions/retry-action - # Codecov action: https://github.com/codecov/codecov-action - - name: Upload coverage to Codecov.io - uses: Wandalen/wretry.action@v1.3.0 - with: - action: codecov/codecov-action@v4 - # Ensure codecov-action throws an error when it fails to upload - with: | - fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} - # Try re-running action 5 times max - attempt_limit: 5 - # Run again in 30 seconds - attempt_delay: 30000 + # # Now attempt upload to Codecov using its action. + # # NOTE: We use a retry action to retry the Codecov upload if it fails the first time. + # # + # # Retry action: https://github.com/marketplace/actions/retry-action + # # Codecov action: https://github.com/codecov/codecov-action + # - name: Upload coverage to Codecov.io + # uses: Wandalen/wretry.action@v1.3.0 + # with: + # action: codecov/codecov-action@v4 + # # Ensure codecov-action throws an error when it fails to upload + # with: | + # fail_ci_if_error: true + # token: ${{ secrets.CODECOV_TOKEN }} + # # Try re-running action 5 times max + # attempt_limit: 5 + # # Run again in 30 seconds + # attempt_delay: 30000