From c2b2c54f7a68ecf19c0a63399493e9039b6daa86 Mon Sep 17 00:00:00 2001 From: MaximilianSoerenPollak Date: Tue, 7 Apr 2026 11:49:47 +0200 Subject: [PATCH 1/2] change things --- .github/workflows/test_and_docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_and_docs.yml b/.github/workflows/test_and_docs.yml index 7826be3d6..46c0b9d2b 100644 --- a/.github/workflows/test_and_docs.yml +++ b/.github/workflows/test_and_docs.yml @@ -20,7 +20,7 @@ permissions: id-token: write on: - pull_request_target: + pull_request: types: [opened, reopened, synchronize] # Allows forks to trigger the docs build push: branches: From 163a18087edb4d2c56a4be26248183064e8d8127 Mon Sep 17 00:00:00 2001 From: MaximilianSoerenPollak Date: Tue, 7 Apr 2026 12:05:56 +0200 Subject: [PATCH 2/2] things --- .github/workflows/test.yml | 15 ++++++--------- .github/workflows/test_and_docs.yml | 2 +- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 64a16b062..c0dc5ef54 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,22 +20,19 @@ jobs: code: runs-on: ubuntu-latest steps: - - name: Checkout repository + - name: Checkout repository (Handle all events) uses: actions/checkout@v4.2.2 - - name: Cache Bazel and pip - uses: actions/cache@v4 with: - path: | - ~/.cache/bazel - ~/.cache/pip - key: ${{ runner.os }}-test-${{ hashFiles('**/*.bazel', '**/BUILD', '**/*.bzl', 'src/requirements.txt', 'src/**/*.py') }} + ref: ${{ github.head_ref || github.event.pull_request.head.ref || github.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} - - name: Setup Bazel with cache - uses: bazel-contrib/setup-bazel@0.15.0 + - name: Setup Bazel with shared caching + uses: bazel-contrib/setup-bazel@0.18.0 with: disk-cache: true repository-cache: true bazelisk-cache: true + cache-save: ${{ github.event_name == 'push' }} - name: Run test targets run: | bazel run --lockfile_mode=error //:ide_support diff --git a/.github/workflows/test_and_docs.yml b/.github/workflows/test_and_docs.yml index 46c0b9d2b..7826be3d6 100644 --- a/.github/workflows/test_and_docs.yml +++ b/.github/workflows/test_and_docs.yml @@ -20,7 +20,7 @@ permissions: id-token: write on: - pull_request: + pull_request_target: types: [opened, reopened, synchronize] # Allows forks to trigger the docs build push: branches: