Skip to content

Commit

Permalink
Migrate CI tests to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiatekus committed Jan 3, 2024
1 parent 4158872 commit 1a2e8ba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: k3d integration test
name: warden verify

on:
push:
Expand All @@ -7,10 +7,22 @@ on:
pull_request:

jobs:
k3d-integration-test:

verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: true
- name: lint
run: make lint
- name: unit test
run: make test

integration-test:
needs: verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create Single Cluster
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ fmt: ## Run go fmt against code.
vet: ## Run go vet against code.
go vet ./...

.PHONY: lint
lint: ## Run go linter
golangci-lint run -v && echo 'OK!'

.PHONY: test
test: manifests generate fmt vet envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... -coverprofile $(TEST_COVER_OUT)
Expand Down

0 comments on commit 1a2e8ba

Please sign in to comment.