Skip to content

Bump the nuget group with 2 updates #1445

Bump the nuget group with 2 updates

Bump the nuget group with 2 updates #1445

Workflow file for this run

name: .NET build
on:
workflow_dispatch:
push:
branches:
- dev
- master
- release/*
- main
pull_request:
branches:
- dev
- master
- release/*
- main
env:
DOTNET_NOLOGO: true
artifact-name: "build-${{ github.sha }}"
clientapp-dir: "./src/PaperMalKing/ClientApp"
node-version: '23.x'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
output-dir: "./output"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET SDK if needed
uses: actions/setup-dotnet@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
- name: Install deps
run: dotnet restore
- name: Build projects
run: dotnet build ./src/PaperMalKing/PaperMalKing.csproj --configuration Release --no-restore --output ${{ env.output-dir }}
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact-name }}
path: ${{ env.output-dir }}
if-no-files-found: error
retention-days: 1
test:
strategy:
matrix:
configuration: ['Release', 'Debug']
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET SDK if needed
uses: actions/setup-dotnet@v4
- name: Test
run: dotnet test --logger GitHubActions "${t}" -c ${{ matrix.configuration }}
codeQl:
name: Run CodeQL analysis
permissions:
security-events: write
actions: read
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET SDK if needed
uses: actions/setup-dotnet@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'csharp'
queries: security-and-quality
config: |
query-filters:
- exclude:
id: cs/call-to-unmanaged-code
- exclude:
id: cs/unmanaged-code
- name: Build .NET
run: dotnet build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
inferSharp:
name: Run Infer#
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.artifact-name }}
- run: mkdir ./createdDlls && mv PaperMalKing* createdDlls
- name: Run Infer#
id: runInferSharp
uses: microsoft/infersharpaction@v1.5
with:
binary-path: "./createdDlls"
- name: Upload SARIF output to GitHub Security Center
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: infer-out/report.sarif