Skip to content

Commit

Permalink
Pipeline improvements (#214)
Browse files Browse the repository at this point in the history
* update sonarcloud tasks in azure pipelines

* update github pipeline

* update
  • Loading branch information
coenm authored Nov 25, 2024
1 parent ff4f7a5 commit a8d5753
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
steps:

- task: SonarCloudPrepare@2
- task: SonarCloudPrepare@3
displayName: Prepare analysis on SonarCloud
inputs:
SonarCloud: SonarCloudGithub
Expand Down
4 changes: 2 additions & 2 deletions .azuredevops/Pipelines/Templates/publish-code-analysis.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
steps:

- task: SonarCloudAnalyze@2
- task: SonarCloudAnalyze@3
displayName: ⚙️ Run Code Analysis
condition: and(succeeded(), or( ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.PullRequest.IsFork'], 'false') ))

- task: SonarCloudPublish@2
- task: SonarCloudPublish@3
displayName: 📢 Publish Quality Gate Result
condition: and(succeeded(), or( ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.PullRequest.IsFork'], 'false') ))

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/on-push-do-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ jobs:
docs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 9.0.x
uses: actions/setup-dotnet@v4

- name: Run MarkdownSnippets
run: |
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/on-push-do-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ jobs:
os: [windows-latest]
runs-on: ${{ matrix.os }}

steps:

- uses: actions/checkout@v2
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 9.0.x
uses: actions/setup-dotnet@v4

- uses: dotnet/nbgv@master
id: nbgv
Expand Down

0 comments on commit a8d5753

Please sign in to comment.