-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (26 loc) · 686 Bytes
/
pull-request.yml
File metadata and controls
35 lines (26 loc) · 686 Bytes
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
name: Pull Request
on:
pull_request:
branches: [ "main" ]
env:
DOTNET_VERSION: "8.0.x"
PROJECT_FILE: "source/FluentDataBuilder.sln"
jobs:
pull-request-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore dependencies
run: dotnet restore ${{ env.PROJECT_FILE }}
- name: Build and analyze
shell: pwsh
run: |
dotnet build --configuration Release --no-restore ${{ env.PROJECT_FILE }}
dotnet test ${{ env.PROJECT_FILE }}