-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 837 Bytes
/
build.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
name: "Build and test .NET SDK"
on:
pull_request:
workflow_dispatch:
push:
branches:
- 3.14
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x.x'
- name: Build the project
run: dotnet build src/GitHub.Octokit.GHES.SDK.csproj
- name: Format
run: dotnet format --verify-no-changes
- name: Test SDK
run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover -p:ExcludeByFile="**/GitHub/**/*.cs"
- name: Build and strong name sign
run: dotnet build src/GitHub.Octokit.GHES.SDK.csproj --no-incremental /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=../key.snk