Skip to content

Commit

Permalink
Windows test
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hallgren <thomas@tada.se>
  • Loading branch information
thallgren committed Aug 8, 2024
1 parent ee00374 commit 36a031f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/wtest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "Windows Tests"
on:
pull_request:

jobs:
start-cluster:
name: Run Cluster
runs-on: ubuntu-latest
steps:
- name: Start minikube
uses: medyagh/setup-minikube@latest
- name: Upload Kubeconfig
uses: actions/upload-artifact@v4
with:
name: kubeconfig
path: ${{env.HOME}}/.kube/config
- name: Wait for cluster usage to end
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.ref }}
check-name: Use Cluster
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 20

use-cluster:
name: Use Cluster
runs-on: windows-latest
steps:
- name: Initial wait
shell: cmd
run: timeout 60
- name: Download Kubeconfig
uses: Wandalen/wretry.action@master
with:
attempt_limit: 5
attempt_delay: 10000
action: actions/download-artifact@v4
with: |
name: kubeconfig
path: ${HOME}/.kube/config
- name: Access Cluster
run: kubectl version

0 comments on commit 36a031f

Please sign in to comment.