Skip to content

Update Dotnet

Update Dotnet #546

Workflow file for this run

name: CodeQL
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- global.json
- NuGet.config
- src/**
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: 'csharp'
- name: Setup
uses: actions/setup-dotnet@v3
- name: Build
run: |
dotnet build ./src/Scaler.sln -c Release -p:ContinuousIntegrationBuild=true -warnaserror
dotnet build ./tests/ScaleTests.sln -c Release -p:ContinuousIntegrationBuild=true -warnaserror
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2