-
Notifications
You must be signed in to change notification settings - Fork 6
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
174 additions
and
17 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,57 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
# https://docs.github.com/en/actions/using-jobs/using-concurrency | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.kube-version }} | ||
cancel-in-progress: true | ||
|
||
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
kube-release: | ||
- 1.23 | ||
|
||
continue-on-error: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up minikube | ||
uses: sagikazarmark/setup-minikube-action@v0 | ||
|
||
- name: Launch minikube cluster | ||
run: minikube start --kubernetes-version=v1.23.15 | ||
|
||
- name: Get pods | ||
run: | | ||
minikube kubectl -- get pods -o wide --all-namespaces | ||
- name: Get nodes | ||
run: | | ||
minikube kubectl -- get nodes -o wide | ||
- name: Install cri-dockerd | ||
run: | | ||
minikube cp install.sh /home/docker/install.sh | ||
minikube ssh -- sudo bash /home/docker/install.sh --force | ||
- name: Get pods | ||
run: | | ||
kubectl get pods -o wide --all-namespaces | ||
- name: Get nodes | ||
run: | | ||
kubectl get nodes -o wide |
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