Skip to content

Commit

Permalink
Merge pull request #72 from LuxoriaSoft/fix/cicd/cache
Browse files Browse the repository at this point in the history
feat: Enable Github workflow cache on Analyze pipeline
  • Loading branch information
QuentinCraft authored Dec 5, 2024
2 parents 51e63da + 1b80d05 commit ba00fe5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ jobs:
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Cache .NET dependencies
uses: actions/cache@v3
with:
path: |
~/.nuget/packages
~/.dotnet
key: ${{ runner.os }}-dotnet-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-dotnet-
- name: Install SonarQube scanner
shell: powershell
run: |
Expand All @@ -25,6 +35,14 @@ jobs:
run: |
dotnet tool install --global dotnet-coverage
- name: Cache SonarCloud data
uses: actions/cache@v3
with:
path: ~/.sonar
key: ${{ runner.os }}-sonar-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-sonar-
- name: Analyze with SonarQube
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down

0 comments on commit ba00fe5

Please sign in to comment.