Skip to content

Commit

Permalink
test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Matte22 committed Aug 21, 2024
1 parent 2b6fbe0 commit 705f787
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/client-sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,22 @@ jobs:
SonarCloudAnalysis-Client:
name: SonarCloud Analysis client
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.fork == false
steps:
# Checkout the repo
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# Analyze client with SonarCloud
- name: Skip notice
if: github.event.pull_request.head.repo.fork == true
run: echo "SonarCloud analysis skipped due to PR from fork."
- name: Check SonarCloud Token
run: |
if [ -z "${{ secrets.SONAR_TOKEN_CLIENT }}" ]; then
echo "SonarCloud token not found. Skipping SonarCloud analysis."
exit 0
fi
- name: Analyze client with SonarCloud
uses: SonarSource/sonarcloud-github-action@v2.0.2
env:
Expand All @@ -47,3 +55,4 @@ jobs:
-Dsonar.organization=nuwcdivnpt
-Dsonar.inclusions=**/*.js,**/*.html,**/*.css
-Dsonar.exclusions=**/node_modules/**

0 comments on commit 705f787

Please sign in to comment.