-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add automatic tests of scenarios
Signed-off-by: Thomas Schuetz <thomas.schuetz@dynatrace.com>
- Loading branch information
Thomas Schuetz
committed
Mar 15, 2023
1 parent
c63ed65
commit 80a003f
Showing
2 changed files
with
48 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Test Scenarios | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- '[0-9]+.[1-9][0-9]*.x' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- '[0-9]+.[1-9][0-9]*.x' | ||
- 'epic/*' | ||
paths-ignore: | ||
- "docs/**" | ||
- "**.md" | ||
- "netlify.toml" | ||
|
||
env: | ||
# renovate: datasource=github-tags depName=kudobuilder/kuttl | ||
KUTTL_VERSION: "v0.15.0" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
run-scenarios: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Create kind Cluster" | ||
uses: helm/kind-action@v1.5.0 | ||
|
||
- name: Download KUTTL | ||
run: | | ||
curl -fL https://github.com/kudobuilder/kuttl/releases/download/${{ env.KUTTL_VERSION }}/kubectl-kuttl_${KUTTL_VERSION#v}_linux_x86_64 -o kubectl-kuttl | ||
chmod +x kubectl-kuttl | ||
mv kubectl-kuttl /usr/local/bin | ||
- name: Run Tests | ||
working-directory: . | ||
run: make test |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.PHONY: test | ||
test: | ||
find . -not -path '*/.*' -type d -depth 1 | xargs make -C {} test |