Skip to content

Send-UI improvements #153

Send-UI improvements

Send-UI improvements #153

Workflow file for this run

name: "CodeQL C#"
on:
push:
branches: [ "master" ]
paths: ["**.cs", "**.xml"]
pull_request:
paths: ["**.cs", "**.xml"]
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'true'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: 'microsoft'
java-version: '11'
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
include-prerelease: true
- name: Install Workloads
run: |
dotnet workload install android --ignore-failed-sources
- name: Build
run: dotnet build "Nearby Sharing Windows" -c Debug --interactive /p:EnforceCodeStyleInBuild=true /p:AnalysisLevel=latest-all
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"