diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 2d3e23b..3fcd2ce 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -18,6 +18,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '9.0.x' - name: Cache SonarQube Cloud packages uses: actions/cache@v4 with: @@ -36,6 +40,8 @@ jobs: run: | mkdir -p ~/.sonar/scanner dotnet tool update dotnet-sonarscanner --tool-path ~/.sonar/scanner + - name: Restore dependencies + run: dotnet restore - name: Build and analyze env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}