diff --git a/.github/workflows/go_test.yml b/.github/workflows/go_test.yml index f5f85d6e..2c7a4ebd 100644 --- a/.github/workflows/go_test.yml +++ b/.github/workflows/go_test.yml @@ -18,7 +18,7 @@ jobs: runs-on: ${{matrix.platform}} env: LLVL: trace - coverage: ${{ matrix.platform == 'ubuntu-latest' && github.repository == 'dedis/dela' }} + coverage: ${{ matrix.platform == 'ubuntu-latest' && secrets.SONAR_TOKEN != '' }} steps: - name: Check out code into the Go module directory uses: actions/checkout@v4 @@ -62,10 +62,10 @@ jobs: # notifies that all test jobs are finished. finish: - if: github.repository == 'dedis/dela' needs: test runs-on: ubuntu-latest steps: - uses: shogo82148/actions-goveralls@v1 + if: ${{ secrets.SONAR_TOKEN != '' }} with: parallel-finished: true