Skip to content

Commit

Permalink
fix reusable action for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Oct 3, 2023
1 parent 3b89e41 commit 6ebf21f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 18 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,34 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: false


cmx-versions:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: get CMX versions to test
id: cmx-versions-to-test
uses: ./.github/actions/cmx-versions
with:
replicated-api-token: ${{ secrets.C11Y_MATRIX_TOKEN }}
outputs:
versions-to-test: ${{ steps.cmx-versions-to-test.outputs.versions-to-test }}


validate-compatibility-tests:
needs: [ enable-tests, can-run-ci, build-push-kotsadm-image, build-e2e, build-kurl-proxy, build-migrations, push-minio, push-mc, push-rqlite ]
needs: [ enable-tests, can-run-ci, build-push-kotsadm-image, build-e2e, build-kurl-proxy, build-migrations, push-minio, push-mc, push-rqlite, cmx-versions ]
uses: ./.github/workflows/compatibility-tests.yaml
with:
versions-to-test: ${{ fromJson(needs.cmx-versions.outputs.versions-to-test) }}
secrets:
TESTIM_ACCESS_TOKEN: ${{ secrets.TESTIM_ACCESS_TOKEN }}
E2E_SUPPORT_BUNDLE_AWS_ACCESS_KEY_ID: ${{ secrets.E2E_SUPPORT_BUNDLE_AWS_ACCESS_KEY_ID }}
E2E_SUPPORT_BUNDLE_AWS_SECRET_ACCESS_KEY: ${{ secrets.E2E_SUPPORT_BUNDLE_AWS_SECRET_ACCESS_KEY }}
C11Y_MATRIX_TOKEN: ${{ secrets.C11Y_MATRIX_TOKEN }}
E2E_DOCKERHUB_USERNAME: ${{ secrets.E2E_DOCKERHUB_USERNAME }}
E2E_DOCKERHUB_PASSWORD: ${{ secrets.E2E_DOCKERHUB_PASSWORD }}


# validate-existing-online-install-minimal:
Expand Down
36 changes: 19 additions & 17 deletions .github/workflows/compatibility-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,32 @@ name: compatibility-tests

on:
workflow_call:
inputs:
versions-to-test:
type: string
required: true
description: 'CMX versions to test'
secrets:
C11Y_MATRIX_TOKEN:
required: true
TESTIM_ACCESS_TOKEN:
required: true
E2E_SUPPORT_BUNDLE_AWS_ACCESS_KEY_ID:
required: true
E2E_SUPPORT_BUNDLE_AWS_SECRET_ACCESS_KEY:
required: true
E2E_DOCKERHUB_USERNAME:
required: true
E2E_DOCKERHUB_PASSWORD:
required: true

jobs:
cmx-versions:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: get CMX versions to test
id: cmx-versions-to-test
uses: ./.github/actions/cmx-versions
with:
replicated-api-token: ${{ secrets.C11Y_MATRIX_TOKEN }}
outputs:
versions-to-test: ${{ steps.cmx-versions-to-test.outputs.versions-to-test }}


validate-smoke-test:
runs-on: ubuntu-20.04
needs: [ cmx-versions ]
strategy:
fail-fast: false
matrix:
cluster: ${{ fromJson(needs.cmx-versions.outputs.versions-to-test) }}
cluster: ${{ fromJson(inputs.versions-to-test) }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 6ebf21f

Please sign in to comment.