Skip to content

feat: stage commit of the OSS CSIT repo #1

feat: stage commit of the OSS CSIT repo

feat: stage commit of the OSS CSIT repo #1

# SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
name: test-integrations
on:
workflow_dispatch:
inputs:
testenv:
description: 'Environmet for test'
type: choice
required: false
options:
- kind
default: kind
destroy-cluster:
description: 'Destroy test cluster'
required: false
default: true
type: boolean
python-version:
description: 'Python version to install'
required: false
default: '3.12'
kind-version:
description: 'Kind version'
required: false
default: '0.24.0'
pull_request:
jobs:
run-tests-gateway:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
packages: 'read'
attestations: 'read'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Environment
uses: ./.github/actions/setup-env
with:
python: true
python-version: "3.12"
go: false
- name: Setup K8S Tools
uses: ./.github/actions/setup-k8s
with:
kind-version: "0.25.0"
- name: Create kind cluster
if: ${{ inputs.testenv == 'kind' }}
run: |
cd integrations
task kind:create
shell: bash
- name: Deploy Phoenix directory
if: ${{ inputs.testenv == 'kind' }}
run: |
cd integrations
task test:env:gateway:deploy
shell: bash
- name: Run simple gateway tests
run: |
cd integrations
task test:gateway
shell: bash