Skip to content

Commit

Permalink
re-enable sonar checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsv committed Mar 27, 2024
1 parent 6e805e6 commit 4ae7f23
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/go_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,40 @@ jobs:
- name: Test without coverage
env:
CRY_LVL: "warn"
# if: matrix.platform == 'macos-latest' || matrix.platform == 'windows-latest'
if: matrix.platform == 'macos-latest' || matrix.platform == 'windows-latest'
run: make test

# - name: Test with coverage
# env:
# CRY_LVL: "warn"
# if: matrix.platform == 'ubuntu-latest'
# run: make coverage
#
# - name: Sonarcloud scan
# if: matrix.platform == 'ubuntu-latest'
# uses: sonarsource/sonarcloud-github-action@master
# with:
# args: >
# -Dsonar.organization=dedis
# -Dsonar.projectKey=dedis_dela
# -Dsonar.go.tests.reportPaths=report.json
# -Dsonar.go.coverage.reportPaths=profile.cov
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
#
# - name: Send coverage
# if: matrix.platform == 'ubuntu-latest'
# uses: shogo82148/actions-goveralls@v1
# with:
# path-to-profile: profile.cov
# parallel: true
- name: Test with coverage
env:
CRY_LVL: "warn"
if: matrix.platform == 'ubuntu-latest'
run: make coverage

- name: Sonarcloud scan
if: matrix.platform == 'ubuntu-latest'
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=dedis
-Dsonar.projectKey=dedis_dela
-Dsonar.go.tests.reportPaths=report.json
-Dsonar.go.coverage.reportPaths=profile.cov
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Send coverage
if: matrix.platform == 'ubuntu-latest'
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
parallel: true

# notifies that all test jobs are finished.
# finish:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - uses: shogo82148/actions-goveralls@v1
# with:
# parallel-finished: true
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true

0 comments on commit 4ae7f23

Please sign in to comment.