Update dependency MassTransit to 8.5.9 #1051
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - release-* | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| DOTNET_NOLOGO: true | |
| VERBOSE_TEST_LOGGING: true | |
| defaults: | |
| run: | |
| shell: pwsh | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: ${{ matrix.transport }} | |
| strategy: | |
| matrix: | |
| transport: [ RabbitMQ, AzureServiceBus, AmazonSQS, AzureServiceBusDeadLetter ] | |
| fail-fast: false | |
| steps: | |
| - name: Check for secrets | |
| env: | |
| SECRETS_AVAILABLE: ${{ secrets.SECRETS_AVAILABLE }} | |
| shell: pwsh | |
| run: exit $(If ($env:SECRETS_AVAILABLE -eq 'true') { 0 } Else { 1 }) | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v5.2.0 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Build | |
| run: dotnet build src --configuration Release | |
| - name: Azure login | |
| uses: azure/login@v3.0.0 | |
| with: | |
| creds: ${{ secrets.AZURE_ACI_CREDENTIALS }} | |
| enable-AzPSSession: true | |
| - name: Setup Azure Service Bus | |
| if: matrix.transport == 'AzureServiceBus' | |
| uses: Particular/setup-azureservicebus-action@v2.2.0 | |
| with: | |
| connection-string-name: AzureServiceBus_ConnectionString | |
| azure-credentials: ${{ secrets.AZURE_ACI_CREDENTIALS }} | |
| tag: ASBMTConnector | |
| - name: Setup Azure Service Bus for DeadLetter | |
| if: matrix.transport == 'AzureServiceBusDeadLetter' | |
| uses: Particular/setup-azureservicebus-action@v2.2.0 | |
| with: | |
| connection-string-name: AzureServiceBusDeadLetter_ConnectionString | |
| azure-credentials: ${{ secrets.AZURE_ACI_CREDENTIALS }} | |
| tag: ASBMTConnector | |
| - name: Setup AWS SDK environment | |
| if: matrix.transport == 'AmazonSQS' | |
| run: | | |
| echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append | |
| echo "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append | |
| echo "AWS_REGION=${{ secrets.AWS_REGION }}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append | |
| - name: Setup RabbitMQ | |
| if: matrix.transport == 'RabbitMQ' | |
| uses: Particular/setup-rabbitmq-action@v1.7.1 | |
| with: | |
| connection-string-name: RabbitMQTransport_ConnectionString | |
| tag: RabbitMQMTConnector | |
| registry-username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| registry-password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Run tests | |
| uses: Particular/run-tests-action@v1.7.0 | |
| - name: Test publish arm64 | |
| run: dotnet publish src/ServiceControl.Connector.MassTransit.Host/ServiceControl.Connector.MassTransit.Host.csproj --arch arm64 | |
| - name: Test publish amd64 | |
| run: dotnet publish src/ServiceControl.Connector.MassTransit.Host/ServiceControl.Connector.MassTransit.Host.csproj --arch amd64 |