Skip to content

Commit

Permalink
Remove sonar step to push to nuget as it had to ran anyway for 2x-dev…
Browse files Browse the repository at this point in the history
… branch so it's redundant....
  • Loading branch information
jordimontana82 committed Feb 6, 2024
1 parent 491c8dd commit 875b30f
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/PushNuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,36 +39,6 @@ jobs:
NUGET_USERNAME: DynamicsValue
NUGET_TOKEN: ${{ secrets.PACKAGES_TOKEN }}

sonar:
needs: build-windows
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '11' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64

- name: Setup .NET Core for Actual Source
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.dotnet-version }}

- name: Disable local packages feed
run: dotnet nuget disable source "local-packages"

- name: Enable GitHub packages feed
run: dotnet nuget enable source github

- name: Quality Gate
run: pwsh ./sonar-scan.ps1 -sonarProjectName "fake-xrm-easy-code-activities" -sonarProjectKey ${{ secrets.SONAR_PROJECT_KEY }} -sonarLogin ${{ secrets.SONAR_TOKEN }} -sonarOrganisation "dynamicsvalue"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_USERNAME: DynamicsValue
NUGET_TOKEN: ${{ secrets.PACKAGES_TOKEN }}

pack-push:
needs: [build-windows, sonar]
runs-on: windows-latest
Expand Down

0 comments on commit 875b30f

Please sign in to comment.