diff --git a/.github/workflows/wtest.yaml b/.github/workflows/wtest.yaml new file mode 100644 index 0000000000..a52131a920 --- /dev/null +++ b/.github/workflows/wtest.yaml @@ -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