Skip to content

Commit 041d0c7

Browse files
Add lint and image step for testing in Prow
1 parent 4ad40cf commit 041d0c7

File tree

6 files changed

+58
-1
lines changed

6 files changed

+58
-1
lines changed

.dockerignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Binaries
2+
bin/
3+
*.exe
4+
*.dll
5+
*.so
6+
*.dylib
7+
8+
# Test coverage
9+
*.out
10+
coverage.html
11+
12+
# IDE
13+
.vscode/
14+
.idea/
15+
*.swp
16+
*.swo
17+
*~
18+
19+
# Git
20+
.git/
21+
.gitignore
22+
23+
# CI/CD
24+
.github/
25+
.claude/
26+
27+
# OS
28+
.DS_Store
29+
Thumbs.db
30+
31+
# Build artifacts
32+
dist/

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM golang:1.25-alpine
2+
3+
WORKDIR /workspace
4+
5+
COPY . .
6+
7+
ENTRYPOINT ["./e2e-test"]

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.PHONY: lint
2+
lint: ## Run golangci-lint linter.
3+
@echo "Running golangci-lint..."
4+
@if command -v golangci-lint > /dev/null; then \
5+
golangci-lint cache clean && golangci-lint run; \
6+
else \
7+
echo "Error: golangci-lint not found. Please install it:"; \
8+
echo " go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest"; \
9+
exit 1; \
10+
fi

OWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ approvers:
1414
- xueli181114
1515
- yasun1
1616
- yingzhanredhat
17+
- tzhou5
1718

1819
reviewers:
1920
- "86254860"
@@ -30,4 +31,5 @@ reviewers:
3031
- vkareh
3132
- xueli181114
3233
- yasun1
33-
- yingzhanredhat
34+
- yingzhanredhat
35+
- tzhou5

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/openshift-hyperfleet/hyperfleet-e2e
2+
3+
go 1.25

test/sample_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package test
2+
3+
// This is a fake test file to make lint pass.We can delete it once there is real .go files

0 commit comments

Comments
 (0)