Skip to content

style: use file-scope namespace and primary constructor #221

style: use file-scope namespace and primary constructor

style: use file-scope namespace and primary constructor #221

name: Pull request CI
on: [ pull_request ]
jobs:
unit-test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 8.x
- name: Build
run: dotnet build --configuration Release
- name: Test
run: dotnet test Client.UnitTests
integration-test:
name: Run integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 8.x
- name: Build
run: dotnet build --configuration Release
- name: Test
run: dotnet test Client.IntegrationTests
auto-merge:
name: Auto-merge dependabot PRs
runs-on: ubuntu-latest
needs: [ unit-test, integration-test ]
if: github.repository == 'camunda-community-hub/zeebe-client-csharp' && (github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]')
permissions:
checks: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- id: merge
name: Merge PR
run: gh pr merge ${{ github.event.pull_request.number }} --merge
env:
GITHUB_TOKEN: "${{ secrets.AUTO_MERGE_GITHUB_TOKEN }}"