This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automated basic test, bump autoscaler to v2beta2 (#24)
* Adapt README to new Helm install syntax * Add basic tests to check deployment is ok * Add GHA badge * Deprecate autoscaling/v2beta1 * Bump chart version
- Loading branch information
Showing
4 changed files
with
51 additions
and
7 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,39 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
example: | ||
name: Minikube installation - Basic test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Minikube | ||
uses: manusa/[email protected] | ||
with: | ||
minikube version: 'v1.28.0' | ||
kubernetes version: 'v1.25.4' | ||
github token: ${{ secrets.GITHUB_TOKEN }} | ||
#- run: minikube addons list | ||
#- name: Interact with the cluster | ||
# run: kubectl get nodes | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install Swagger-ui | ||
run: helm install swagger-ui . | ||
- name: Check deployment status | ||
run: | | ||
kubectl rollout status --watch deployment/swagger-ui-swaggerui --timeout=5m | ||
# this test would be nice but it does not work in its current state | ||
#- name: Check web application responds | ||
# run: | | ||
# curl -sk http://$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}"):$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services swagger-ui-swaggerui) | \ | ||
# grep 'Swagger UI' |
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
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
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