Skip to content

Commit

Permalink
chore: do not run sonarcloud for zero modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Nov 8, 2024
1 parent 4b8d2fa commit 8e5691c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ jobs:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for sonarsource/sonarcloud-github-action to determine which PR to decorate
if: ${{ github.ref_name == 'main' && github.repository_owner == 'testcontainers' }}
needs: test
if: ${{ github.ref_name == 'main' && github.repository_owner == 'testcontainers' && needs.detect-modules.outputs.modulesCount > 0 }}
needs:
- detect-modules
- test
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand Down

0 comments on commit 8e5691c

Please sign in to comment.