File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
- name : SonarCloud
1
+ name : Sonars
2
2
on :
3
3
push :
4
4
branches :
9
9
types : [ opened, synchronize, reopened ]
10
10
jobs :
11
11
sonarcloud :
12
- name : SonarCloud
12
+ name : Sonars
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v2
15
+ - name : Checkout code
16
+ uses : actions/checkout@v2
16
17
with :
17
18
fetch-depth : 0
18
19
@@ -25,15 +26,15 @@ jobs:
25
26
- name : Install dependencies with composer
26
27
run : composer update --no-ansi --no-interaction --no-progress
27
28
28
- - name : Generate coverage report with phpunit/phpunit
29
+ - name : Generate coverage report with phpunit
29
30
run : vendor/bin/phpunit --coverage-clover coverage.xml --log-junit report.xml
30
31
31
32
- name : Monitor coverage
32
33
uses : slavcodev/coverage-monitor-action@v1
33
34
with :
34
- github_token : ${{ secrets.SECRET_GITHUB_TOKEN }}
35
+ github_token : ${{ secrets.ACTIONS_GITHUB_TOKEN }}
35
36
coverage_path : coverage.xml
36
- threshold_alert : 75
37
+ threshold_alert : 90
37
38
threshold_warning : 95
38
39
39
40
- name : Codecov analyze
47
48
- name : SonarCloud Scan
48
49
uses : SonarSource/sonarcloud-github-action@master
49
50
env :
51
+ GITHUB_TOKEN : ${{ secrets.ACTIONS_GITHUB_TOKEN }}
50
52
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments