Fixed Release zip file #233
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Code Analysis" | |
on: | |
push: # The master branch must be analyzed on a new commit | |
branches: [ master ] | |
pull_request: | |
# Any PR on master must be analyzed | |
branches: [ master ] | |
workflow_dispatch: # CodeQL can be triggered manually | |
jobs: | |
analyzeQL: | |
name: Analyze with CodeQL | |
# runs-on: [windows-latest] # may cause Out of Memory errors | |
runs-on: [self-hosted] | |
permissions: | |
# required for all workflows | |
security-events: write | |
# required to fetch internal or private CodeQL packs | |
packages: read | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'csharp' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Setup .NET Core SDK | |
uses: actions/[email protected] | |
with: | |
dotnet-version: ${{vars.DOTNET_VERSION}} | |
- run: dotnet restore | |
- run: dotnet build ./FASTER.sln --configuration Debug | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
AnalysisSonar: | |
name: Analyze with SonarCloud | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write # allows SonarCloud to decorate PRs with analysis results | |
steps: | |
- name: Analyze with SonarCloud | |
# You can pin the exact commit or the version. | |
uses: SonarSource/sonarcloud-github-action@v3 | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
# Additional arguments for the SonarScanner CLI | |
args: | |
-Dsonar.projectKey=Foxlider_FASTER | |
-Dsonar.organization=foxlicorp | |
projectBaseDir: . |