Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Merge pull request #128 from NoxOrg/feature/volume-type #90

Merge pull request #128 from NoxOrg/feature/volume-type

Merge pull request #128 from NoxOrg/feature/volume-type #90

Workflow file for this run

name: SonarCloud Static analysis
on:
push:
branches:
- main
paths:
- src/**
- tests/**
- .github/workflows/sonarcloud.yaml
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch: # allow to run the workflow Manually
permissions:
pull-requests: read # allows SonarCloud to decorate PRs with analysis results
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v1
with:
path: ./.sonar/scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
run: |
New-Item -Path ./.sonar/scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner
shell: pwsh