ci: test k8s runner

This commit is contained in:
Michael Kriese 2023-12-07 15:28:23 +01:00
parent da9ef9585a
commit 9b05957ec9
No known key found for this signature in database
GPG key ID: B83F553A0724D44E
2 changed files with 6 additions and 15 deletions

View file

@ -21,3 +21,6 @@ runs:
docker-ce \ docker-ce \
docker-ce-cli \ docker-ce-cli \
; ;
- shell: bash
run: docker info

View file

@ -17,7 +17,7 @@ env:
HELM_UNITTEST_VERSION: v0.3.6 # renovate: datasource=github-releases depName=helm-unittest packageName=helm-unittest/helm-unittest HELM_UNITTEST_VERSION: v0.3.6 # renovate: datasource=github-releases depName=helm-unittest packageName=helm-unittest/helm-unittest
HELM_CHART_TESTING_VERSION: v3.10.1 # renovate: datasource=github-releases depName=chart-testing packageName=helm/chart-testing HELM_CHART_TESTING_VERSION: v3.10.1 # renovate: datasource=github-releases depName=chart-testing packageName=helm/chart-testing
KIND_VERSION: v0.20.0 # renovate: datasource=github-releases depName=kind packageName=kubernetes-sigs/kind KIND_VERSION: v0.20.0 # renovate: datasource=github-releases depName=kind packageName=kubernetes-sigs/kind
KUBECTL_VERSION: v1.21.0 # renovate: datasource=github-releases depName=kubectl packageName=kubernetes/kubernetes KUBECTL_VERSION: v1.28.0 # renovate: datasource=github-releases depName=kubectl packageName=kubernetes/kubernetes
jobs: jobs:
# lint-node: # lint-node:
@ -73,7 +73,7 @@ jobs:
# - run: ct lint --config tools/ct.yml --charts . # - run: ct lint --config tools/ct.yml --charts .
e2e: e2e:
runs-on: self-hosted runs-on: k8s
strategy: strategy:
matrix: matrix:
@ -100,23 +100,11 @@ jobs:
- uses: ./.forgejo/actions/setup-docker - uses: ./.forgejo/actions/setup-docker
# - name: install chart-testing ${{ env.HELM_CHART_TESTING_VERSION }}
# run: |
# curl -LO "https://github.com/helm/chart-testing/releases/download/${HELM_CHART_TESTING_VERSION}/chart-testing_${HELM_CHART_TESTING_VERSION#v}_linux_amd64.tar.gz"
# tar -C "/usr/local/bin" -xf "chart-testing_${HELM_CHART_TESTING_VERSION#v}_linux_amd64.tar.gz" ct
# mkdir /etc/ct
# tar --strip 1 -C "/etc/ct" -xf "chart-testing_${HELM_CHART_TESTING_VERSION#v}_linux_amd64.tar.gz" etc
# rm "chart-testing_${HELM_CHART_TESTING_VERSION#v}_linux_amd64.tar.gz"
# ct --version
- run: docker info
- run: docker ps
- name: Create kind cluster - name: Create kind cluster
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0 uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0
with: with:
node_image: kindest/node:${{ matrix.k8s }} node_image: kindest/node:${{ matrix.k8s }}
kubectl_version: ${{ env.KUBECTL_VERSION }}
version: ${{ env.KIND_VERSION }} version: ${{ env.KIND_VERSION }}
- run: kubectl get no -o wide - run: kubectl get no -o wide