Skip to content

v0.9.5

v0.9.5 #4

Workflow file for this run

name: build
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore
run: dotnet restore ObjectPoolLinter.slnx
- name: Build
run: dotnet build ObjectPoolLinter.slnx -c Release --no-restore -warnaserror
- name: Test
run: >-
dotnet test ObjectPoolLinter.slnx -c Release --no-build
--logger "trx;LogFileName=test-results.trx"
--results-directory artifacts/test-results
- name: Verify sample diagnostics
shell: pwsh
run: ./build/verify-sample.ps1 -Configuration Release -NoDependencies
- name: Pack
run: dotnet pack src/ObjectPoolLinter.Package/ObjectPoolLinter.Package.csproj -c Release --no-build -o artifacts/nuget
- name: Upload packages
uses: actions/upload-artifact@v4
with:
name: nuget
path: |
artifacts/nuget/*.nupkg
artifacts/nuget/*.snupkg
if-no-files-found: error
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: artifacts/test-results
if-no-files-found: ignore