Skip to content

Commit

Permalink
additional core tests and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lkingland committed Apr 24, 2024
1 parent 9f28399 commit 64c3745
Show file tree
Hide file tree
Showing 3 changed files with 411 additions and 210 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: E2E Tests
name: E2E Tests: Host-based

on: [pull_request]

Expand All @@ -9,17 +9,21 @@ jobs:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- name: Set Environment Variables
run: |
echo "KUBECONFIG=${{ github.workspace }}/hack/bin/kubeconfig.yaml" >> "$GITHUB_ENV"
echo "PATH=${{ github.workspace }}/hack/bin:$PATH" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
- uses: ./.github/composite/go-setup
- name: Install Binaries
run: ./hack/binaries.sh
run: ./hack/install-binaries.sh
- name: Allocate Cluster
run: ./hack/allocate.sh
- name: Local Registry
run: ./hack/registry.sh
- name: E2E Test
run: make test-e2e
run: make test-e2e-host
- uses: codecov/codecov-action@v3
with:
files: ./coverage.txt
flags: e2e-test
flags: e2e
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ test-integration: ## Run integration tests using an available cluster.
go test -ldflags "$(LDFLAGS)" -tags integration -timeout 30m --coverprofile=coverage.txt ./... -v


test-e2e-quick: func-instrumented ## Run quick end-to-end tests using an available cluster.
# go test ./e2e -tags="e2e"
go test ./e2e
.PHONY: func-instrumented

func-instrumented: ## Func binary that is instrumented for e2e tests
env CGO_ENABLED=1 go build -ldflags "$(LDFLAGS)" -cover -o func ./cmd/$(BIN)
Expand All @@ -216,6 +214,9 @@ test-e2e-runtime: func-instrumented ## Run end-to-end lifecycle tests using an a
test-e2e-on-cluster: func-instrumented ## Run end-to-end on-cluster build tests using an available cluster.
./test/e2e_oncluster_tests.sh

test-e2e-host: func-instrumented ## Run end-to-end tests for the host builder
go test ./e2e -tags="e2e"

######################
##@ Release Artifacts
######################
Expand Down
Loading

0 comments on commit 64c3745

Please sign in to comment.