File tree 2 files changed +34
-7
lines changed
2 files changed +34
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Tests
2
2
3
- on : [push]
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - main
8
+
9
+ concurrency :
10
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11
+ cancel-in-progress : true
4
12
5
13
jobs :
6
14
unit-test :
7
15
runs-on : ubuntu-latest
8
16
steps :
9
- - uses : actions/checkout@v3
10
- - uses : php-actions/composer@v6
11
- - name : PHPUnit Tests
12
- uses : php-actions/phpunit@v9
13
- with :
14
- configuration : tests/phpunit.xml
17
+ - uses : actions/checkout@v3
18
+ - uses : php-actions/composer@v6
19
+ - name : PHPUnit Tests
20
+ uses : php-actions/phpunit@v3
21
+ with :
22
+ version : 9.6.5
23
+ php_version : 8.2.3
24
+ configuration : phpunit.xml
25
+ php_extensions : " xdebug"
26
+ coverage-text : true
27
+ coverage-clover : reports/coverage.xml
28
+
29
+ # SonarCloud
30
+ - name : SonarCloud Scan
31
+ uses : SonarSource/sonarcloud-github-action@master
32
+ env :
33
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change
1
+ sonar.projectKey =geekcell_ddd-symfony-bundle
2
+ sonar.organization =geekcell
3
+
4
+ sonar.sources =src
5
+ sonar.exclusions =tests/**
6
+ sonar.tests =tests
7
+ sonar.php.coverage.reportPaths =reports/coverage.xml
You can’t perform that action at this time.
0 commit comments