CreamInstaller/.github/workflows/codeql.yml

49 lines
969 B
YAML
Raw Normal View History

2022-05-17 21:02:08 +05:00
name: CodeQL
2022-05-17 20:41:11 +05:00
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
analyze:
name: Analyze
2022-05-17 21:07:35 +05:00
runs-on: windows-latest
2022-05-17 20:41:11 +05:00
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
2022-05-17 21:02:08 +05:00
config-file: ./.github/codeql-config.yml
2022-05-17 20:41:11 +05:00
2022-05-17 21:14:10 +05:00
- name: Setup
uses: actions/setup-dotnet@v1
with:
2022-12-21 02:30:57 +05:00
dotnet-version: 7.x.x
2022-05-17 21:14:10 +05:00
- name: Restore
run: dotnet restore
- name: Build
2022-05-17 21:19:52 +05:00
run: dotnet build --no-restore --configuration Release /p:UseSharedCompilation=false
2022-05-17 21:14:10 +05:00
- name: Test
run: dotnet test --no-build --verbosity normal --configuration Release
2022-05-17 20:41:11 +05:00
- name: Analyze
uses: github/codeql-action/analyze@v2