Skip to content

Commit 2b851a9

Browse files
committed
Merge branch 'main' into tg/fix-hbmm-delete-test
2 parents 8c1986a + d94224a commit 2b851a9

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/pr-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
# if there's a diff then the workflow will exit here.
4545
- name: Run make verify
4646
run: make BUILD_IN_CONTAINER=false verify
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4749

4850
- name: Lint Golang Code
4951
run: make BUILD_IN_CONTAINER=false lint-golang-ci

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ jobs:
5252
run: |
5353
cd test && go mod download
5454
55+
# Cache envtest binaries so we don't re-download from
56+
# https://github.com/kubernetes-sigs/controller-tools/releases/...
57+
# every run (helps avoid 503s).
58+
- name: Cache envtest binaries
59+
id: cache-envtest
60+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
61+
with:
62+
path: ~/.local/share/kubebuilder-envtest
63+
key: local-share-kubebuilder-envtest-${{ runner.os }}
64+
5565
- name: Running tests
5666
run: make test-unit
5767

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ ifeq ($(BUILD_IN_CONTAINER),true)
762762
$(BUILDER_IMAGE):$(BUILDER_IMAGE_VERSION) $@;
763763
else
764764
@lychee --version
765+
@if [ -z "$${GITHUB_TOKEN}" ]; then echo "GITHUB_TOKEN is not set"; exit 1; fi
765766
lychee --verbose --config .lychee.toml ./*.md ./docs/**/*.md 2>&1 | grep -vP '\[(200|EXCLUDED)\]'
766767
endif
767768

0 commit comments

Comments
 (0)