Skip to content

Commit

Permalink
VIDCS-3281: Skip Sonarcloud scan and Integration tests if PR is from …
Browse files Browse the repository at this point in the history
…a fork (External Contributor) (#25)
  • Loading branch information
dwivedisachin authored Jan 24, 2025
1 parent e998c60 commit 7c385b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ jobs:
yarn test
- name: SonarCloud Scan
if: steps.check-skip-ci.outputs.result == 'false'
if: steps.check-skip-ci.outputs.result == 'false' && github.event.pull_request.head.repo.fork == false
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Run integration tests
if: steps.check-skip-ci.outputs.result == 'false'
if: steps.check-skip-ci.outputs.result == 'false' && github.event.pull_request.head.repo.fork == false
run: |
Xvfb :99 & export DISPLAY=:99
yarn test:integration

0 comments on commit 7c385b2

Please sign in to comment.