Skip to content

Commit 896cb62

Browse files
committed
test(e2e): implement ginkgo as e2e suite
Signed-off-by: Oliver Bähler <[email protected]>
1 parent f505ba5 commit 896cb62

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+430
-3
lines changed

.github/workflows/e2e.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: e2e
2+
permissions: {}
3+
4+
on:
5+
push:
6+
branches: [ "*" ]
7+
paths:
8+
- '.github/workflows/e2e.yml'
9+
- 'api/**'
10+
- 'controllers/**'
11+
- 'internal/**'
12+
- 'e2e/*'
13+
- 'Dockerfile'
14+
- 'go.*'
15+
- 'main.go'
16+
- 'Makefile'
17+
pull_request:
18+
branches: [ "*" ]
19+
paths:
20+
- '.github/workflows/e2e.yml'
21+
- 'api/**'
22+
- 'controllers/**'
23+
- 'internal/**'
24+
- 'e2e/*'
25+
- 'Dockerfile'
26+
- 'go.*'
27+
- 'main.go'
28+
- 'Makefile'
29+
30+
concurrency:
31+
group: ${{ github.workflow }}-${{ github.ref }}
32+
cancel-in-progress: true
33+
34+
jobs:
35+
kind:
36+
name: Kubernetes
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
k8s-version: [ 'v1.24.7', 'v1.25.3', 'v1.26.3', 'v1.27.2', 'v1.28.0', 'v1.29.0', 'v1.30.0', 'v1.31.0' ]
41+
runs-on: ubuntu-20.04
42+
steps:
43+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
44+
with:
45+
fetch-depth: 0
46+
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
47+
with:
48+
go-version-file: 'go.mod'
49+
- uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 # v0.5.0
50+
with:
51+
skipClusterCreation: true
52+
version: v0.14.0
53+
- uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v3
54+
with:
55+
version: v3.14.2
56+
- name: e2e testing
57+
run: KIND_K8S_VERSION=${{ matrix.k8s-version }} make e2e

.golangci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
linters-settings:
2-
govet:
3-
check-shadowing: true
42
gci:
53
sections:
64
- standard
@@ -13,6 +11,12 @@ linters-settings:
1311
min-occurrences: 2
1412
cyclop:
1513
max-complexity: 17
14+
issues:
15+
exclude-rules:
16+
- path: (.+)_test.go
17+
linters:
18+
- revive
19+
text: "^(dot-imports)"
1620
linters:
1721
enable-all: true
1822
disable:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ controller-gen: ## Download controller-gen locally if necessary.
266266
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_GEN_VERSION))
267267

268268
GINKGO := $(shell pwd)/bin/ginkgo
269-
GINKGO_VERSION = 2.19.0
269+
GINKGO_VERSION = v2.19.0
270270
ginkgo: ## Download ginkgo locally if necessary.
271271
$(call go-install-tool,$(GINKGO),github.com/onsi/ginkgo/v2/ginkgo@$(GINKGO_VERSION))
272272

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)