Sets up github workflow for running release tests

This commit is contained in:
Ben 2024-11-25 15:57:57 +01:00
parent 4990bb2282
commit 92d504ef9c
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B
1 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,50 @@
name: Run Continuous Tests
on:
workflow_dispatch:
inputs:
codexdockerimage:
description: Codex Docker image (example: 'codexstorage/nim-codex:0.1.8-dist-tests')
required: true
type: string
workflow_call:
inputs:
codexdockerimage:
description: Codex Docker image (example: 'codexstorage/nim-codex:0.1.8-dist-tests')
required: true
type: string
env:
JOB_MANIFEST: docker/release-tests-job.yaml
CODEXDOCKERIMAGE: codexstorage/nim-codex:not-specified
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
KUBE_VERSION: v1.28.2
jobs:
run_tests:
name: Run Codex Release Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ inputs.workflow_source }}
- name: Variables
run: |
[[ -n "${{ inputs.codexdockerimage }}" ]] && echo "CODEXDOCKERIMAGE=${{ inputs.codexdockerimage }}" >>"$GITHUB_ENV" || echo "CODEXDOCKERIMAGE=${{ env.CODEXDOCKERIMAGE }}" >>"$GITHUB_ENV"
- name: Kubectl - Install ${{ env.KUBE_VERSION }}
uses: azure/setup-kubectl@v4
with:
version: ${{ env.KUBE_VERSION }}
- name: Kubectl - Kubeconfig
run: |
mkdir -p "${HOME}"/.kube
echo "${{ env.KUBE_CONFIG }}" | base64 -d > "${HOME}"/.kube/config
- name: Run Tests
run: |
dotnet test ./Tests/CodexReleaseTests