forked from louketo/louketo-proxy
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add E2E tests also to pull requests * Fix Duration options, not taken by env var
- Loading branch information
Showing
3 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,17 @@ jobs: | |
# Verify downloaded dependencies | ||
- name: Verify dependencies | ||
run: go mod verify | ||
- name: "Create k3d Cluster for E2E testing" | ||
uses: AbsaOSS/[email protected] | ||
with: | ||
cluster-name: "testcluster" | ||
args: >- | ||
-p "8081:80@loadbalancer" | ||
- name: "Run E2E tests" | ||
run: | | ||
k3d kubeconfig merge testcluster --kubeconfig-switch-context | ||
KUBECONFIG=~/.k3d/kubeconfig-testcluster.yaml kubectl apply -f ./e2e/k8s/manifest.yml | ||
go test -v --tags=e2e | ||
# Run tests and generates a coverage profile | ||
- name: Test | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters