-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Luca Di Maio <[email protected]>
- Loading branch information
Showing
12 changed files
with
190 additions
and
97 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 |
---|---|---|
|
@@ -21,44 +21,98 @@ env: | |
GOFLAGS: -mod=vendor | ||
|
||
jobs: | ||
test-e2e: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
max-parallel: 16 | ||
matrix: | ||
label: ["build", "ide", "integration", "machine", "machineprovider", "provider", "proxyprovider", "ssh", "up", "up-docker", "up-podman", "up-docker-compose"] | ||
#test-e2e: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# fail-fast: true | ||
# max-parallel: 16 | ||
# matrix: | ||
# label: ["build", "ide", "integration", "machine", "machineprovider", "provider", "proxyprovider", "ssh", "up", "up-docker", "up-podman", "up-docker-compose"] | ||
|
||
# steps: | ||
# - name: Checkout repo | ||
# uses: actions/checkout@v2 | ||
|
||
# - name: Set up Go | ||
# uses: actions/setup-go@v2 | ||
# with: | ||
# go-version: 1.20.5 | ||
|
||
# - name: Set up kind k8s cluster | ||
# uses: engineerd/[email protected] | ||
# with: | ||
# version: "v0.20.0" | ||
# image: kindest/node:v1.27.3 | ||
|
||
# - name: Testing kind cluster set-up | ||
# run: | | ||
# set -x | ||
# kubectl cluster-info | ||
# kubectl get pods -n kube-system -v 10 | ||
# echo "kubectl config current-context:" $(kubectl config current-context) | ||
# echo "KUBECONFIG env var:" ${KUBECONFIG} | ||
|
||
# - name: Build binary and copy to the E2E directory | ||
# working-directory: ./e2e | ||
# run: | | ||
# chmod +x ../hack/build-e2e.sh | ||
# BUILDDIR=bin SRCDIR=".." ../hack/build-e2e.sh | ||
|
||
# - name: E2E test | ||
# working-directory: ./e2e | ||
# run: | | ||
# sudo KUBECONFIG=/home/runner/.kube/config go test -v -ginkgo.v -timeout 3600s --ginkgo.label-filter=${{ matrix.label }} | ||
|
||
test-e2e-windows: | ||
runs-on: windows-latest | ||
# strategy: | ||
# fail-fast: true | ||
# max-parallel: 16 | ||
# matrix: | ||
# # "up-podman", "integration", "machineprovider", "up" | ||
# label: ["build", "ide", "machine", "machineprovider", "provider", "proxyprovider", "ssh", "up-docker", "up-docker-compose"] | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.20.5 | ||
|
||
- name: Set up kind k8s cluster | ||
uses: engineerd/[email protected] | ||
with: | ||
version: "v0.20.0" | ||
image: kindest/node:v1.27.3 | ||
# - name: Set up Go | ||
# uses: actions/setup-go@v2 | ||
# with: | ||
# go-version: 1.20.5 | ||
|
||
- name: Testing kind cluster set-up | ||
- name: WSL | ||
run: | | ||
set -x | ||
kubectl cluster-info | ||
kubectl get pods -n kube-system -v 10 | ||
echo "kubectl config current-context:" $(kubectl config current-context) | ||
echo "KUBECONFIG env var:" ${KUBECONFIG} | ||
- name: Build binary and copy to the E2E directory | ||
working-directory: ./e2e | ||
wsl.exe --set-default-version 2 | ||
wsl --set-default Ubuntu | ||
- name: Set up Docker | ||
run: | | ||
chmod +x ../hack/build-e2e.sh | ||
BUILDDIR=bin SRCDIR=".." ../hack/build-e2e.sh | ||
choco install -y docker-desktop | ||
- name: E2E test | ||
working-directory: ./e2e | ||
- name: Run docker linux | ||
run: | | ||
sudo KUBECONFIG=/home/runner/.kube/config go test -v -ginkgo.v -timeout 3600s --ginkgo.label-filter=${{ matrix.label }} | ||
$PATH = [Environment]::GetEnvironmentVariable("PATH") | ||
$docker_path = "C:\Program Files\Docker\Docker\resources\bin" | ||
[Environment]::SetEnvironmentVariable("PATH", "$docker_path;$PATH") | ||
[Environment]::SetEnvironmentVariable("PATH", "$docker_path;$PATH", "Machine") | ||
dir C:\"Program Files"\Docker\Docker\resources\bin\ | ||
C:\"Program Files"\Docker\Docker\resources\bin\docker.exe run --rm docker.io/library/alpine:latest sh -c "cat /etc/os-release" | ||
C:\"Program Files"\Docker\Docker\resources\bin\docker run --rm docker.io/library/alpine:latest sh -c "cat /etc/os-release" | ||
docker run --rm docker.io/library/alpine:latest sh -c "cat /etc/os-release" | ||
# - name: Build binary and copy to the E2E directory | ||
# run: | | ||
# go build -ldflags "-s -w" -o devpod-windows-amd64.exe | ||
# mkdir e2e\bin | ||
# cp devpod-windows-amd64.exe e2e\bin\ | ||
# | ||
# - name: E2E test | ||
# working-directory: .\e2e | ||
# run: | | ||
# go run github.com/onsi/ginkgo/v2/ginkgo -r --timeout=3600s --label-filter=${{ matrix.label }} |
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
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
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
Oops, something went wrong.