-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(garden): π· add garden test workflow
Signed-off-by: Manuel Ruck <[email protected]>
- Loading branch information
Manuel Ruck
committed
Jun 9, 2024
1 parent
eeb4af4
commit 585428f
Showing
2 changed files
with
29 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,28 @@ | ||
name: π§βπΎ Integration-Test | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Test-on-cluster: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: π Testing on a k8s Kind Cluster | ||
uses: helm/[email protected] | ||
# - name: π save the current kube-context config file as environment variable | ||
# id: kube-context | ||
# run: | | ||
# echo "kubeconfig=$(kubectl config view --raw | base64)" >> $GITHUB_ENV | ||
- name: π₯ Checkout code | ||
uses: actions/[email protected] | ||
- run: | | ||
cat $HOME/.kube/config | ||
- name: π± Deploy preview env with Garden | ||
uses: garden-io/[email protected] | ||
with: | ||
command: test | ||
# kubeconfig-location: $HOME/.kube/config | ||
kubeconfig: $(kubectl config view --raw | base64) | ||
- run: | | ||
cat $HOME/.kube/config |
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