@@ -2,21 +2,17 @@ name: Build PHP 8.3
22
33on :
44 push :
5- branches : [ master , dev ]
5+ branches : [ main , dev ]
66 pull_request :
7- branches : [ master, dev ]
8-
7+ branches : [ main, dev ]
8+ env :
9+ OPERATING_SYS : ubuntu-latest
10+ PHP_VERSION : 8.3
911jobs :
1012 test :
11- runs-on : ${{ matrix.os }}
12-
13- strategy :
14- fail-fast : true
15- matrix :
16- os : [ ubuntu-latest ]
17- php : [8.3]
13+ runs-on : " ubuntu-latest"
1814
19- name : PHP${{matrix.php}} - ${{matrix.os}}
15+ name : " PHP 8.3 - Ubuntu-Latest "
2016
2117 steps :
2218 - name : Clone Repo
@@ -25,23 +21,23 @@ jobs:
2521 - name : Setup PHP
2622 uses : shivammathur/setup-php@v2
2723 with :
28- php-version : ${{ matrix.php }}
24+ php-version : ${{ env.PHP_VERSION }}
2925 extensions : mysqli, mbstring, sqlsrv
3026 tools : phpunit:9.5.20, composer
3127
3228 - name : Install Dependencies
33- run : composer install --prefer-source --no-interaction --no-dev
29+ run : composer install --prefer-source --no-interaction
3430
3531 - name : Execute Tests
36- run : phpunit
32+ run : phpunit --configuration=tests/phpunit.xml
3733
3834 - name : CodeCov
3935 uses : codecov/codecov-action@v4
4036 env :
4137 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
4238
4339 - name : SonarCloud Code Scan
44- uses : sonarsource/sonarqube-scan-action@v4
40+ uses : sonarsource/sonarqube-scan-action@v5
4541 env :
4642 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4743 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
5046 name : Prepare Production Release Branch / Publish Release
5147 needs :
5248 - " test"
53- runs-on : ubuntu-latest
54- if : github.ref == 'refs/heads/master '
49+ runs-on : " ubuntu-latest"
50+ if : github.ref == 'refs/heads/main '
5551 steps :
5652 - uses : actions/checkout@v4
5753 - uses : google-github-actions/release-please-action@v3
0 commit comments