Skip to content

Commit 65930c0

Browse files
committed
Introduce check job for make test
This commit introduces a new Github Workflow named "Unit Tests". This workflow is responsible for running unit tests triggered by (make tests). This commit also addresses the following error that was encountered when one ran make test locally or in a job: --- unable to fetch hash for requested version: unable fetch metadata for kubebuilder-tools-1.30.0-linux-amd64.tar.gz -- got status "401 Unauthorized" from GCS --- The fixes bumps up the test dependencies (ENVTEST_VERSION release-0.18 -> release-0.22). The previous vrsion was trying to pull the the test dependencies from GCS server that has been deprecated as part of 0.19 [1]. [1] kubernetes-sigs/controller-runtime#2915
1 parent 48b5142 commit 65930c0

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/unit-tests.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
unit-tests:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v7
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v6
19+
20+
- name: Run tests
21+
run: make test

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ KUTTL ?= $(LOCALBIN)/kubectl-kuttl
246246
## Tool Versions
247247
KUSTOMIZE_VERSION ?= v5.4.2
248248
CONTROLLER_TOOLS_VERSION ?= v0.16.5
249-
ENVTEST_VERSION ?= release-0.18
249+
ENVTEST_VERSION ?= release-0.22
250250
GOLANGCI_LINT_VERSION ?= v2.6.0
251251
KUTTL_VERSION ?= 0.22.0
252252

0 commit comments

Comments
 (0)