GitHub Apps Proof-of-Concept #224
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build and test .NET SDK" | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
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' | |
# This is a temporary step. Since the CLI references the main project locally, the main | |
# project must be built first. When the CLI is removed, this may be removed as well. | |
- name: Build main project | |
run: dotnet build src/GitHub.Octokit.SDK.csproj | |
- name: Format | |
run: dotnet format --verify-no-changes | |
- name: Build and strong name sign | |
run: dotnet build --no-incremental /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=../key.snk | |
- name: Test SDK | |
run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover -p:ExcludeByFile="**/GitHub/**/*.cs" |