|
9 | 9 | OPERATING_SYS: ubuntu-latest |
10 | 10 | PHP_VERSION: 8.3 |
11 | 11 | jobs: |
| 12 | + |
12 | 13 | test: |
13 | | - runs-on: "ubuntu-latest" |
| 14 | + name: Run Tests |
| 15 | + uses: WebFiori/workflows/.github/workflows/php-test.yaml@main |
| 16 | + with: |
| 17 | + php-version: '8.1' |
14 | 18 |
|
15 | | - name: "PHP 8.3 - Ubuntu-Latest" |
16 | | - |
17 | | - steps: |
18 | | - - name: Clone Repo |
19 | | - uses: actions/checkout@v4 |
20 | | - |
21 | | - - name: Setup PHP |
22 | | - uses: shivammathur/setup-php@v2 |
23 | | - with: |
24 | | - php-version: ${{ env.PHP_VERSION }} |
25 | | - extensions: mysqli, mbstring, sqlsrv |
26 | | - tools: phpunit:9.5.20, composer |
27 | | - |
28 | | - - name: Install Dependencies |
29 | | - run: composer install --prefer-source --no-interaction |
30 | | - |
31 | | - - name: Execute Tests |
32 | | - run: phpunit --configuration=tests/phpunit.xml |
33 | | - |
34 | | - - name: CodeCov |
35 | | - uses: codecov/codecov-action@v4 |
36 | | - env: |
37 | | - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
38 | | - |
39 | | - - name: SonarCloud Code Scan |
40 | | - uses: sonarsource/sonarqube-scan-action@v5 |
41 | | - env: |
42 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
43 | | - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
| 19 | + |
| 20 | + code-coverage: |
| 21 | + name: Coverage |
| 22 | + needs: test |
| 23 | + uses: WebFiori/workflows/.github/workflows/coverage-codecov.yaml@main |
| 24 | + with: |
| 25 | + php-version: '8.1' |
| 26 | + coverage-file: 'php-8.1-coverage.xml' |
| 27 | + secrets: |
| 28 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 29 | + |
| 30 | + code-quality: |
| 31 | + name: Code Quality |
| 32 | + needs: test |
| 33 | + uses: WebFiori/workflows/.github/workflows/quality-sonarcloud.yaml@main |
| 34 | + secrets: |
| 35 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 36 | + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
44 | 37 |
|
45 | 38 | release_prod: |
46 | 39 | name: Prepare Production Release Branch / Publish Release |
|
0 commit comments