-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2219 from EclipseFdn/main
Release v0.14.1
- Loading branch information
Showing
9 changed files
with
1,808 additions
and
1,711 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Sonar | ||
on: | ||
workflow_run: | ||
workflows: [Build] | ||
types: [completed] | ||
jobs: | ||
sonar: | ||
name: Sonar | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- name: Download PR number artifact | ||
if: github.event.workflow_run.event == 'pull_request' | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: Build | ||
run_id: ${{ github.event.workflow_run.id }} | ||
name: PR_NUMBER | ||
- name: Read PR_NUMBER.txt | ||
if: github.event.workflow_run.event == 'pull_request' | ||
id: pr_number | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: ./PR_NUMBER.txt | ||
- name: Request GitHub API for PR data | ||
if: github.event.workflow_run.event == 'pull_request' | ||
uses: octokit/[email protected] | ||
id: get_pr_data | ||
with: | ||
route: GET /repos/{full_name}/pulls/{number} | ||
number: ${{ steps.pr_number.outputs.content }} | ||
full_name: ${{ github.event.repository.full_name }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ github.event.workflow_run.head_repository.full_name }} | ||
ref: ${{ github.event.workflow_run.head_branch }} | ||
fetch-depth: 0 | ||
- name: Checkout base branch | ||
if: github.event.workflow_run.event == 'pull_request' | ||
run: | | ||
git remote add upstream ${{ github.event.repository.clone_url }} | ||
git fetch upstream | ||
git checkout -B ${{ fromJson(steps.get_pr_data.outputs.data).base.ref }} upstream/${{ fromJson(steps.get_pr_data.outputs.data).base.ref }} | ||
git checkout ${{ github.event.workflow_run.head_branch }} | ||
git clean -ffdx && git reset --hard HEAD | ||
- name: SonarCloud Scan on PR | ||
if: github.event.workflow_run.event == 'pull_request' | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
with: | ||
args: > | ||
-Dsonar.scm.revision=${{ github.event.workflow_run.head_sha }} | ||
-Dsonar.pullrequest.key=${{ fromJson(steps.get_pr_data.outputs.data).number }} | ||
-Dsonar.pullrequest.branch=${{ fromJson(steps.get_pr_data.outputs.data).head.ref }} | ||
-Dsonar.pullrequest.base=${{ fromJson(steps.get_pr_data.outputs.data).base.ref }} | ||
- name: SonarCloud Scan on push | ||
if: github.event.workflow_run.event == 'push' && github.event.workflow_run.head_repository.full_name == github.event.repository.full_name | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
with: | ||
args: > | ||
-Dsonar.scm.revision=${{ github.event.workflow_run.head_sha }} | ||
-Dsonar.branch.name=${{ github.event.workflow_run.head_branch }} |
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 was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 +1,7 @@ | ||
compressionLevel: mixed | ||
|
||
enableGlobalCache: false | ||
|
||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.1.cjs | ||
yarnPath: .yarn/releases/yarn-4.0.0.cjs |
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
Oops, something went wrong.