-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (39 loc) · 1.04 KB
/
buildAndTest.yml
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
name: build and test on pull
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release
test:
needs: build
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Run Unit Tests
run: dotnet test --verbosity normal --configuration Release
automerge:
needs: [build,test]
runs-on: ubuntu-latest
steps:
- name: get actor
run: echo "${{github.actor}}"
- name: automerge
uses: "pascalgn/automerge-action@ccae530ae13b6af67a7a2009c266fe925844e658"
if: github.actor == 'dependabot-preview[bot]'
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: ""