Skip to content

Potential fix for code scanning alert no. 33: Workflow does not conta… #546

Potential fix for code scanning alert no. 33: Workflow does not conta…

Potential fix for code scanning alert no. 33: Workflow does not conta… #546

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
env:
DOTNET_VERSION: 8.0.x
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Use .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build project
run: dotnet build -c Release
- name: Run test cases
run: dotnet test -c Release --no-build
- name: Lint C# code
run: dotnet format --verify-no-changes --verbosity detailed --no-restore