Test StackExchange.Redis client main / unstable-33565510074-debian | YqFBuGGk #134
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: "StackExchange.Redis 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/NRedisStack)' | |
| default: 'redis/NRedisStack' | |
| required: false | |
| ref: | |
| description: 'Ref to test (e.g., main)' | |
| default: 'main' | |
| required: false | |
| # UUID is used to help automation to identify workflow run in the list of workflow runs. | |
| run-name: >- | |
| Test StackExchange.Redis 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: StackExchange.Redis test | |
| env: | |
| DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: "1" # Enable color output, even though the console output is redirected in Actions | |
| TERM: xterm # Enable color output in GitHub Actions | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Run tests | |
| uses: StackExchange/StackExchange.Redis/.github/actions/run-tests@main | |
| 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 |