diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index c60767295..e403ac7f9 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -15,7 +15,7 @@ name: Run Bazel Tests on: workflow_call: jobs: - code: + _tests: runs-on: ubuntu-latest steps: - name: 🛡️ Harden Runner @@ -37,12 +37,9 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} - name: Setup Bazel with shared caching - uses: bazel-contrib/setup-bazel@0.19.0 + uses: eclipse-score/cicd-actions/setup-bazel-cache@cache with: - disk-cache: true - repository-cache: true - bazelisk-cache: true - cache-save: ${{ github.event_name == 'push' }} + disk-cache-key: ${{ github.job }} - name: Setup venv run: bazel run --lockfile_mode=error //:ide_support diff --git a/.github/workflows/downstream_compatibility.yml b/.github/workflows/downstream_compatibility.yml index ccba472da..16d0c4f49 100644 --- a/.github/workflows/downstream_compatibility.yml +++ b/.github/workflows/downstream_compatibility.yml @@ -57,6 +57,11 @@ jobs: packages: graphviz cache: false + - name: Setup Bazel with shared caching + uses: eclipse-score/cicd-actions/setup-bazel-cache@cache + with: + disk-cache-key: ${{ github.job }} + - name: Checkout PR uses: actions/checkout@v7 diff --git a/.github/workflows/test_links.yml b/.github/workflows/test_links.yml index 179abe609..e47c15fe8 100644 --- a/.github/workflows/test_links.yml +++ b/.github/workflows/test_links.yml @@ -26,6 +26,12 @@ jobs: uses: step-security/harden-runner@v2.21.0 with: egress-policy: audit + + - name: Setup Bazel with shared caching + uses: eclipse-score/cicd-actions/setup-bazel-cache@cache + with: + disk-cache-key: ${{ github.job }} + - name: Checkout repository uses: actions/checkout@v7