diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 4622dddd..7ac1fbe2 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -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 diff --git a/Makefile b/Makefile index 1119a1b6..696828c2 100644 --- a/Makefile +++ b/Makefile @@ -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