Skip to content

Commit e22fbd4

Browse files
committed
Merge branch 'ens13782-upgrade-angular-version' of github.com:mariuscernescu/aem-angular-editable-components into ens13782-upgrade-angular-version
2 parents 1759bfb + 69854a5 commit e22fbd4

File tree

2 files changed

+36
-12
lines changed

2 files changed

+36
-12
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,3 @@ jobs:
2727
path: coverage
2828
- name: Upload code coverage report to codecov.io and comment in pull request
2929
uses: codecov/codecov-action@v1
30-
- name: Upload Sonar report to sonarcloud.io and comment in pull request
31-
uses: sonarsource/sonarcloud-github-action@master
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
35-
with:
36-
args: >
37-
-Dsonar.organization=adobeinc
38-
-Dsonar.projectKey=adobe_aem-angular-editable-components
39-
-Dsonar.sources=src
40-
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
41-
-Dsonar.coverage.exclusions=src/public_api.ts,src/test.ts,src/lib/aem-angular-editable-components.module.ts,**/*.spec.ts

.github/workflows/sonar.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Sonar
2+
on:
3+
workflow_run:
4+
workflows: ["Continuous Integration"]
5+
types:
6+
- completed
7+
jobs:
8+
sonar:
9+
name: Sonar
10+
runs-on: ubuntu-latest
11+
if: github.event.workflow_run.conclusion == 'success'
12+
steps:
13+
- name: Checkout source code
14+
uses: actions/checkout@v2
15+
with:
16+
repository: ${{ github.event.workflow_run.head_repository.full_name }}
17+
ref: ${{ github.event.workflow_run.head_branch }}
18+
fetch-depth: 0
19+
- name: "Get PR information"
20+
uses: potiuk/get-workflow-origin@v1
21+
id: source-run-info
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
sourceRunId: ${{ github.event.workflow_run.id }}
25+
- name: Upload Sonar report to sonarcloud.io and comment in pull request
26+
uses: sonarsource/sonarcloud-github-action@master
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30+
with:
31+
args: >
32+
-Dsonar.organization=adobeinc
33+
-Dsonar.projectKey=adobe_aem-angular-editable-components
34+
-Dsonar.sources=src
35+
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
36+
-Dsonar.coverage.exclusions=src/public_api.ts,src/test.ts,src/lib/aem-angular-editable-components.module.ts,**/*.spec.ts

0 commit comments

Comments
 (0)