Skip to content

Commit

Permalink
chore: Separate job for E2E testing (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu authored Jan 28, 2025
1 parent 9ca46e2 commit 926fc6e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
pull_request:
paths:
- "charts/**"
- "e2e/**"
- "tests/**"

permissions:
contents: read
Expand Down Expand Up @@ -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
Expand Down
File renamed without changes.

0 comments on commit 926fc6e

Please sign in to comment.