Skip to content

Commit

Permalink
Only do sonarcloud on dedis/dela
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Jul 5, 2024
1 parent 7288f63 commit 20fbfbd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/go_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
runs-on: ${{matrix.platform}}
env:
LLVL: trace
coverage: ${{ matrix.platform == 'ubuntu-latest' && github.repository == 'dedis/dela' }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand All @@ -30,17 +31,17 @@ jobs:
- name: Test without coverage
env:
CRY_LVL: "warn"
if: matrix.platform == 'macos-latest' || matrix.platform == 'windows-latest'
if: ${{ env.coverage == 'false' }}
run: make test

- name: Test with coverage
env:
CRY_LVL: "warn"
if: matrix.platform == 'ubuntu-latest'
if: ${{ env.coverage == 'true' }}
run: make coverage

- name: Sonarcloud scan
if: matrix.platform == 'ubuntu-latest'
if: ${{ env.coverage == 'true' }}
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
Expand All @@ -53,7 +54,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Send coverage
if: matrix.platform == 'ubuntu-latest'
if: ${{ env.coverage == 'true' }}
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
Expand Down

0 comments on commit 20fbfbd

Please sign in to comment.