test: e2e test on windows #6
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
name: e2e test | |
on: | |
push: | |
branches: | |
- ks-main | |
pull_request: | |
branches: | |
- ks-main | |
jobs: | |
# e2e: | |
# name: e2e test | |
# runs-on: ubuntu-20.04 | |
# steps: | |
# - name: checkout code | |
# uses: actions/checkout@v2 | |
# with: | |
# fetch-depth: 0 | |
# - name: install Go | |
# uses: actions/setup-go@v2 | |
# with: | |
# go-version: 1.22 | |
# - name: Setup K3d | |
# uses: nolar/[email protected] | |
# - name: run e2e | |
# run: make e2e-test | |
e2e-windows: | |
name: e2e test on windows | |
runs-on: windows-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22 | |
- name: Setup K3d | |
shell: powershell | |
# uses: nolar/[email protected] | |
run: | | |
# Install scoop. | |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | |
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | |
# Install K3d. | |
scoop install k3d | |
# Create k3s-default cluster. | |
k3d cluster create k3s-default | |
# Check kubeconfig context. | |
kubectl config get-contexts | |
- name: run e2e | |
run: make e2e-test |