-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
1 deletion.
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,55 @@ | ||
name: tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
default-cmd: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
curl --silent --fail https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash | ||
k3d cluster delete testing | ||
k3d cluster create testing | ||
KUBECONFIG=$(k3d kubeconfig get testing | base64 | sed ':a;N;$!ba;s/\n//g') | ||
echo "KUBE_CONFIG=${KUBECONFIG}" >> $GITHUB_ENV | ||
- uses: ./ | ||
get-pods: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
curl --silent --fail https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash | ||
k3d cluster delete testing | ||
k3d cluster create testing | ||
KUBECONFIG=$(k3d kubeconfig get testing | base64 | sed ':a;N;$!ba;s/\n//g') | ||
echo "KUBE_CONFIG=${KUBECONFIG}" >> $GITHUB_ENV | ||
- uses: ./ | ||
with: | ||
args: get pods | ||
multiply: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
curl --silent --fail https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash | ||
k3d cluster delete testing | ||
k3d cluster create testing | ||
KUBECONFIG=$(k3d kubeconfig get testing | base64 | sed ':a;N;$!ba;s/\n//g') | ||
echo "KUBE_CONFIG=${KUBECONFIG}" >> $GITHUB_ENV | ||
- uses: ./ | ||
- uses: ./ | ||
with: | ||
args: get pods | ||
kustomize: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
echo 'configMapGenerator: | ||
- name: example | ||
literals: | ||
- FOO=Bar' > kustomization.yaml | ||
- uses: ./ | ||
with: | ||
args: kustomize |
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