![dependabot[bot]](/assets/img/avatar_default.png)
Bumps the all group with 2 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact) and [github/codeql-action](https://github.com/github/codeql-action). Updates `actions/upload-artifact` from 4.3.5 to 4.3.6 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](89ef406dd8...834a144ee9
) Updates `github/codeql-action` from 3.25.15 to 3.26.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](afb54ba388...eb055d739a
) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
|
|
- name: cache
|
|
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
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@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
|
|
if: success() || failure()
|
|
with:
|
|
name: e2e-test-reports-${{ inputs.k8s-version }}${{ inputs.variation }}
|
|
path: 'test/junitreports/report*.xml'
|
|
|