Skip to content

Commit

Permalink
Merge pull request #90 from ssylver93/feature/WFPREV-34_3
Browse files Browse the repository at this point in the history
Test sonar
  • Loading branch information
ssylver93 authored Sep 30, 2024
2 parents d5ac4ec + 6483f97 commit 62bb03f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/sonarscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ on:
push:
branches: [ main, feature/* ]
pull_request_target:
branches: [ main, feature/* ]
types: [opened, synchronize, reopened]

jobs:
sonar:
name: Test - SonarCloud Scan
name: Server - SonarCloud Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -29,12 +30,16 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
sonarcloud:
name: SonarCloud
name: Client - SonarCloud Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install dependencies
run: yarn
- name: Test and coverage
run: yarn jest --coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sonar.organization=bcgov-sonarcloud
sonar.projectKey=bcgov_nr-bcws-wfprev
sonar.projectName=wfprev-parent
sonar.host.url=https://sonarcloud.io
sonar.sources=.
sonar.sources=client

# relative paths to source directories. More details and properties are described
# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/
Expand Down

0 comments on commit 62bb03f

Please sign in to comment.