Bumps the all group with 5 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.1.2` | `4.1.3` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.3.1` | `4.3.2` | | [azure/setup-helm](https://github.com/azure/setup-helm) | `4.1.0` | `4.2.0` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4.1.4` | `4.1.5` | | [github/codeql-action](https://github.com/github/codeql-action) | `3.24.10` | `3.25.1` | Updates `actions/checkout` from 4.1.2 to 4.1.3 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](9bb56186c3...1d96c772d1) Updates `actions/upload-artifact` from 4.3.1 to 4.3.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](5d5d22a312...1746f4ab65) Updates `azure/setup-helm` from 4.1.0 to 4.2.0 - [Release notes](https://github.com/azure/setup-helm/releases) - [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md) - [Commits](b7246b12e7...fe7b79cd5e) Updates `actions/download-artifact` from 4.1.4 to 4.1.5 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](c850b930e6...8caf195ad4) Updates `github/codeql-action` from 3.24.10 to 3.25.1 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](4355270be1...c7f9125735)
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
#### THIS IS A TEMPLATE ####
|
|
# This workflow is created to be a template for every time an e2e teest is required,
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
k8s-version:
|
|
required: true
|
|
type: string
|
|
variation:
|
|
type: string
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
kubernetes:
|
|
name: Kubernetes ${{ inputs.variation }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
|
|
|
|
- name: cache
|
|
uses: actions/download-artifact@8caf195ad4b1dee92908e23f56eeb0696f1dd42d # v4.1.5
|
|
with:
|
|
name: docker.tar.gz
|
|
|
|
- name: Create Kubernetes ${{ inputs.k8s-version }} cluster
|
|
id: kind
|
|
run: |
|
|
kind create cluster --image=kindest/node:${{ inputs.k8s-version }} --config test/e2e/kind.yaml
|
|
|
|
- name: Load images from cache
|
|
run: |
|
|
echo "loading docker images..."
|
|
gzip -dc docker.tar.gz | docker load
|
|
|
|
- name: Run e2e tests ${{ inputs.variation }}
|
|
env:
|
|
KIND_CLUSTER_NAME: kind
|
|
SKIP_CLUSTER_CREATION: true
|
|
SKIP_INGRESS_IMAGE_CREATION: true
|
|
SKIP_E2E_IMAGE_CREATION: true
|
|
ENABLE_VALIDATIONS: ${{ inputs.variation == 'VALIDATIONS' }}
|
|
IS_CHROOT: ${{ inputs.variation == 'CHROOT' }}
|
|
run: |
|
|
kind get kubeconfig > $HOME/.kube/kind-config-kind
|
|
make kind-e2e-test
|
|
|
|
- name: Upload e2e junit-reports ${{ inputs.variation }}
|
|
uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2
|
|
if: success() || failure()
|
|
with:
|
|
name: e2e-test-reports-${{ inputs.k8s-version }}${{ inputs.variation }}
|
|
path: 'test/junitreports/report*.xml'
|
|
|