Skip to content

Commit

Permalink
gh: Add e2e job
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Llorente <ellorent@redhat.com>
  • Loading branch information
qinqon committed Jun 10, 2024
1 parent e5c2a7d commit f99e989
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,33 @@ jobs:
- name: Test
run: ENVTEST_VERSION="release-0.17" make test
e2e:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'

- name: Start cluster
env:
KIND_ALLOW_SYSTEM_WRITES: true
run: make cluster-up

- name: Sync cluster
run: make cluster-sync

- name: Run e2e tests
run: make test-e2e

- name: E2E Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Ginkgo Tests
path: .output/*.xml
reporter: java-junit
fail-on-error: true
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ test: manifests generate fmt vet envtest ## Run tests.
test-e2e:
export KUBECONFIG=$$(pwd)/.output/kubeconfig && \
cd test/e2e && \
go test -v --ginkgo.v
go test -v --ginkgo.v --ginkgo.junit-report=$$(pwd)/.output/test-e2e.junit.xml

.PHONY: lint
lint: golangci-lint ## Run golangci-lint linter & yamllint
Expand Down

0 comments on commit f99e989

Please sign in to comment.