Skip to content

Commit

Permalink
Merge 63c6e15 into 18aa863
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Jul 4, 2021
2 parents 18aa863 + 63c6e15 commit c7d77d5
Showing 1 changed file with 14 additions and 27 deletions.
41 changes: 14 additions & 27 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- dev
- codecov-instead-of-sonar
pull_request:
branches:
- main
Expand All @@ -16,6 +17,8 @@ jobs:
steps:
- name: 📤 Checkout the repository
uses: actions/checkout@main
with:
fetch-depth: 0

- name: 🥅 Install .Net 5
uses: actions/setup-dotnet@v1
Expand All @@ -36,31 +39,15 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{github.workspace}}/codecover/lcov.info

analyze:
name: 🔍 Analyze sources (CI)
environment: CI - analyze environment
runs-on: ubuntu-latest
steps:
- name: 📤 Checkout the repository
uses: actions/checkout@main
with:
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0

- name: 🔍 Analyze code
uses: highbyte/sonarscan-dotnet@v2.1-beta
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: codecov/codecov-action@v1
with:
sonarOrganization: net-daemon
sonarProjectKey: net-daemon_netdaemon
sonarProjectName: netdaemon

dotnetTestArguments: --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
sonarBeginArguments: >-
/d:sonar.inclusions="**/src/**"
/d:sonar.test.inclusions="**/tests/**"
/d:sonar.cs.xunit.reportsPaths="**/tests/**/TestResults/*.trx"
/d:sonar.cs.opencover.reportsPaths="**/tests/**/coverage.opencover.xml"
flags: unittests # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)

# analyze:
# name: 🔍 Analyze sources (CI)
# runs-on: ubuntu-latest
# steps:

0 comments on commit c7d77d5

Please sign in to comment.