-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Separate job for E2E testing (#16)
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 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 |
---|---|---|
|
@@ -5,6 +5,8 @@ on: | |
pull_request: | ||
paths: | ||
- "charts/**" | ||
- "e2e/**" | ||
- "tests/**" | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -130,14 +132,38 @@ jobs: | |
with: | ||
version: v1.61 | ||
|
||
- name: Run go test | ||
run: go test -v ./tests/... | ||
|
||
e2e-test: | ||
name: e2e-test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.6.3 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: stable | ||
|
||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
node_image: kindest/node:v1.29.2 | ||
version: v0.20.0 | ||
|
||
- name: Run go test | ||
run: go test -v ./... | ||
- name: Run e2e test | ||
# The timeout is explicitly set to clarify that we intend it to be short enough | ||
# and not uncontrollably getting longer. | ||
run: go test -v ./e2e/... -timeout 5m | ||
|
||
install-chart: | ||
name: install-chart | ||
|
File renamed without changes.