Skip to content

ci(garden): πŸ‘· add garden test workflow #37

ci(garden): πŸ‘· add garden test workflow

ci(garden): πŸ‘· add garden test workflow #37

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: |
kubectl config view --raw
echo kubectl config view --raw | base64
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