forked from octokit/dotnet-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (27 loc) · 878 Bytes
/
build.yml
File metadata and controls
37 lines (27 loc) · 878 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: "Build and test .NET SDK"
on:
pull_request:
branches:
- "main"
- "boxbuild"
push:
branches:
- "main"
- "boxbuild"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x.x'
- name: Build the project
run: dotnet build src/GitHub.Octokit.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.SDK.csproj --no-incremental /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=../key.snk