Test jedis client master / unstable-33338735235-debian | v2RClvph #269
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Jedis client testing" | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| workflow_uuid: | |
| description: 'Optional UUID to identify this workflow run' | |
| required: false | |
| client_test_image: | |
| description: 'Docker image tag (e.g., unstable-21323211374-debian-amd64)' | |
| required: true | |
| redis_version: | |
| description: 'Redis version (e.g., 8.6.1, unstable)' | |
| required: false | |
| repository: | |
| description: 'Repository to test (e.g., redis/jedis)' | |
| default: 'redis/jedis' | |
| required: false | |
| ref: | |
| description: 'Ref to test (e.g., main)' | |
| default: 'master' | |
| required: false | |
| # UUID is used to help automation to identify workflow run in the list of workflow runs. | |
| run-name: >- | |
| Test jedis client | |
| ${{ inputs.ref }} | |
| ${{ github.event.inputs.client_test_image != '' && format('/ {0}', github.event.inputs.client_test_image) || '' }} | |
| ${{ github.event.inputs.workflow_uuid && format('| {0}', github.event.inputs.workflow_uuid) || '' }} | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| name: Jedis test | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Run tests | |
| uses: redis/jedis/.github/actions/run-tests@master | |
| with: | |
| client_libs_test_image_tag: ${{ inputs.client_test_image }} | |
| ref: ${{ inputs.ref }} | |
| repository: ${{ inputs.repository }} | |
| - name: Create result artifact | |
| env: | |
| CLIENT_TEST_IMAGE: ${{ inputs.client_test_image }} | |
| REDIS_VERSION: ${{ inputs.redis_version }} | |
| shell: bash | |
| run: | | |
| cat > result.json << EOF | |
| { | |
| "client_test_image_tag": "$CLIENT_TEST_IMAGE", | |
| "redis_version": "$REDIS_VERSION" | |
| } | |
| EOF | |
| echo "Created result.json:" | |
| cat result.json | |
| - name: Upload result artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: result | |
| path: result.json | |
| retention-days: 90 |