-
-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (42 loc) · 1.41 KB
/
pull_request.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
49
name: PR
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
- converted_to_draft
- ready_for_review
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
GITHUB_ACTIONS: true
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
steps:
- name: Checkout Branch
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Tool Restore
run: dotnet tool restore
- name: Build
run: dotnet nuke build --configuration Release --no-logo
- name: Lint
run: dotnet nuke lint --skip build --no-logo
- name: Tests
run: dotnet nuke test --configuration Release --skip build --no-logo
- name: Test Result
if: ${{ github.actor != 'dependabot[bot]' && (success() || failure()) }}
uses: dorny/test-reporter@v1.5.0
with:
name: Test Report
reporter: dotnet-trx
path: tests/**/test_result.xml