-
Notifications
You must be signed in to change notification settings - Fork 55
49 lines (49 loc) · 1.43 KB
/
pull-request-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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/[email protected]
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/[email protected]
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]'
permissions:
checks: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- id: metadata
name: Fetch dependency metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- id: merge
name: Merge PR
run: gh pr merge ${{ github.event.pull_request.number }} --merge
env:
GITHUB_TOKEN: "${{ secrets.AUTO_MERGE_GITHUB_TOKEN }}"