Skip to content

Commit da35a33

Browse files
authored
Merge pull request #1535 from GetStream/steve/add-sonar-to-next-release
chore: adds sonar cloud analysis to next-release.yml
2 parents dbd60bd + 067af3b commit da35a33

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/next-release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,21 @@ jobs:
3131
run: yarn --frozen-lockfile && yarn bootstrap-ci
3232
- name: Lint
3333
run: yarn lerna-workspaces run lint && (cd docusaurus; npx prettier --check '**/*.mdx')
34+
- name: Test
35+
run: yarn test:coverage
36+
- name: SonarCloud Scan
37+
uses: sonarsource/sonarcloud-github-action@master
38+
with:
39+
args: >
40+
-Dsonar.organization=getstream
41+
-Dsonar.projectKey=GetStream_stream-chat-react-native
42+
-Dsonar.javascript.lcov.reportPaths=./package/coverage/lcov.info
43+
-Dsonar.sources=package/src/
44+
-Dsonar.test.exclusions=**/__tests__/**
45+
-Dsonar.verbose=true
3446
- name: Publish Next Release
3547
run: GITHUB_SHORT_SHA="$(git rev-parse --short $GITHUB_SHA)" yarn release-next
3648
env:
3749
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)