Skip to content

Commit 7767ab9

Browse files
committed
Add tools to SonarCloud => Sonars
1 parent 9538c92 commit 7767ab9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/sonarcloud.yml renamed to .github/workflows/sonars.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: SonarCloud
1+
name: Sonars
22
on:
33
push:
44
branches:
@@ -9,10 +9,11 @@ on:
99
types: [ opened, synchronize, reopened ]
1010
jobs:
1111
sonarcloud:
12-
name: SonarCloud
12+
name: Sonars
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- name: Checkout code
16+
uses: actions/checkout@v2
1617
with:
1718
fetch-depth: 0
1819

@@ -25,15 +26,15 @@ jobs:
2526
- name: Install dependencies with composer
2627
run: composer update --no-ansi --no-interaction --no-progress
2728

28-
- name: Generate coverage report with phpunit/phpunit
29+
- name: Generate coverage report with phpunit
2930
run: vendor/bin/phpunit --coverage-clover coverage.xml --log-junit report.xml
3031

3132
- name: Monitor coverage
3233
uses: slavcodev/coverage-monitor-action@v1
3334
with:
34-
github_token: ${{ secrets.SECRET_GITHUB_TOKEN }}
35+
github_token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
3536
coverage_path: coverage.xml
36-
threshold_alert: 75
37+
threshold_alert: 90
3738
threshold_warning: 95
3839

3940
- name: Codecov analyze
@@ -47,4 +48,5 @@ jobs:
4748
- name: SonarCloud Scan
4849
uses: SonarSource/sonarcloud-github-action@master
4950
env:
51+
GITHUB_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
5052
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)