Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/actions/warm-go-cache/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Warm Go build cache'
description: 'Set GOCACHE and optionally warm from EFS-backed PV'
runs:
using: composite
steps:
- shell: bash
run: |
echo "GOCACHE=/tmp/go-build-cache" >> "$GITHUB_ENV"
if [ -d /cache/go-build ]; then
mkdir -p /tmp/go-build-cache && \
cp -a /cache/go-build/. /tmp/go-build-cache/ || \
echo "Warning: failed to copy EFS cache, proceeding without cache"
fi
1 change: 1 addition & 0 deletions .github/workflows/envtest-kube-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ./.github/actions/warm-go-cache
- run: make test-envtest-kube ENVTEST_KUBE_VERSIONS="${{ matrix.version }}"

conclusion:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/envtest-ocp-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ./.github/actions/warm-go-cache
- run: make test-envtest-ocp ENVTEST_OCP_K8S_VERSIONS="${{ matrix.version }}"

conclusion:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
if [ -n "${{ github.base_ref }}" ]; then
git fetch origin "${{ github.base_ref }}:${{ github.base_ref }}"
fi
- uses: ./.github/actions/warm-go-cache
- name: Use pre-built lint tools
run: |
if [ -d /opt/lint-tools ]; then
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/verify-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ./.github/actions/warm-go-cache
- run: make generate update
- run: make staticcheck
- run: make fmt
Expand Down