File tree Expand file tree Collapse file tree 2 files changed +33
-4
lines changed Expand file tree Collapse file tree 2 files changed +33
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Continuous Integration
2
2
3
+
3
4
on :
5
+ workflow_dispatch :
4
6
push :
5
- branches : [ main ]
7
+ branches : [ main ]
8
+ tags : [ v* ]
6
9
pull_request :
7
- branches : [ main ]
8
10
9
11
jobs :
10
12
run-tests :
@@ -59,14 +61,21 @@ jobs:
59
61
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
60
62
61
63
- name : Execute tests (Unit and Feature)
62
- run : vendor/bin/phpunit
64
+ run : vendor/bin/phpunit --log-junit=reports/report-phpunit.xml --coverage-clover=reports/coverage-phpunit.xml
63
65
64
66
- name : Static analysis with PHPStan
65
- run : vendor/bin/phpstan analyse
67
+ run : |
68
+ vendor/bin/phpstan analyse --error-format=github
69
+ vendor/bin/phpstan analyse --error-format=json > reports/phpstan.json
66
70
67
71
- name : Static analysis with Psalm
68
72
if : " ${{ matrix.experimental == false }}"
69
73
run : vendor/bin/psalm
70
74
71
75
- name : Coding style PSR12 Check
72
76
run : vendor/bin/phpcs
77
+
78
+ - name : ' Run SonarQube cloud scanner'
79
+ uses : minvws/nl-irealisatie-generic-pipelines/.github/actions/sonarcloud@main
80
+ with :
81
+ sonar-token : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change
1
+ # Project info
2
+ sonar.organization =vws
3
+ sonar.projectKey =nl-rdo-openid-connect-php-laravel
4
+
5
+ # Info links shown in SonarCloud
6
+ sonar.links.homepage =https://github.com/minvws/nl-rdo-openid-connect-php-laravel
7
+
8
+ # Encoding and language specific properties
9
+ sonar.sourceEncoding =UTF-8
10
+
11
+ # Analysis scoping
12
+ sonar.sources =src,config,routes
13
+ sonar.tests =tests
14
+
15
+ # Code coverage
16
+ sonar.php.tests.reportPath =reports/report-phpunit.xml
17
+ sonar.php.coverage.reportPaths =reports/coverage-phpunit.xml
18
+
19
+ # Additional reports
20
+ sonar.php.phpstan.reportPaths =reports/phpstan.json
You can’t perform that action at this time.
0 commit comments