File tree Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Expand file tree Collapse file tree 2 files changed +31
-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,19 @@ jobs:
59
61
run : 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 : vendor/bin/phpstan analyse --error-format=json > reports/phpstan.json
66
68
67
69
- name : Static analysis with Psalm
68
70
if : " ${{ matrix.experimental == false }}"
69
71
run : vendor/bin/psalm
70
72
71
73
- name : Coding style PSR12 Check
72
74
run : vendor/bin/phpcs
75
+
76
+ - name : Run SonarCloud scanner
77
+ uses : minvws/nl-irealisatie-generic-pipelines/.github/actions/sonarcloud@main
78
+ with :
79
+ 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
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