File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -762,6 +762,7 @@ ifeq ($(BUILD_IN_CONTAINER),true)
762762 $(BUILDER_IMAGE):$(BUILDER_IMAGE_VERSION) $@;
763763else
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)\]'
766767endif
767768
You can’t perform that action at this time.
0 commit comments