-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated github actions to cache artifacts
- Loading branch information
1 parent
d61294f
commit 3af4246
Showing
3 changed files
with
104 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,39 @@ | ||
on: | ||
# Trigger analysis when pushing in master or pull requests, and when creating | ||
# a pull request. | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
types: [opened, synchronize, reopened] | ||
|
||
name: Sonar Workflow | ||
|
||
jobs: | ||
sonarcloud: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# Disabling shallow clone is recommended for improving relevancy of reporting | ||
fetch-depth: 0 | ||
- name: SonarCloud Scan | ||
uses: sonarsource/sonarcloud-github-action@master | ||
with: | ||
args: > | ||
-Dsonar.organization=react-creme | ||
-Dsonar.projectKey=react-creme | ||
-Dsonar.sources=packages/lib/ | ||
-Dsonar.coverage | ||
-Dsonar.test.exclusions=tests/** | ||
-Dsonar.exclusions=packages/lib/coverage/** | ||
-Dsonar.javascript.lcov.reportPaths=packages/lib/coverage/lcov.info | ||
-Dsonar.verbose=true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Cache SonarCloud dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
|
||
- name: SonarCloud Scan | ||
uses: sonarsource/sonarcloud-github-action@master | ||
with: | ||
args: > | ||
-Dsonar.organization=react-creme | ||
-Dsonar.projectKey=react-creme | ||
-Dsonar.sources=packages/lib/ | ||
-Dsonar.coverage | ||
-Dsonar.test.exclusions=tests/** | ||
-Dsonar.exclusions=packages/lib/coverage/** | ||
-Dsonar.javascript.lcov.reportPaths=packages/lib/coverage/lcov.info | ||
-Dsonar.verbose=true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
3af4246
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-creme – ./
react-creme-prabhuignoto.vercel.app
react-creme-git-master-prabhuignoto.vercel.app
react-creme.vercel.app
react-creme.prabhumurthy.com