Skip to content

Commit 53bfbef

Browse files
authored
Update php83.yml
1 parent 0211771 commit 53bfbef

1 file changed

Lines changed: 23 additions & 30 deletions

File tree

.github/workflows/php83.yml

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,31 @@ env:
99
OPERATING_SYS: ubuntu-latest
1010
PHP_VERSION: 8.3
1111
jobs:
12+
1213
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'
1418

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 }}
4437

4538
release_prod:
4639
name: Prepare Production Release Branch / Publish Release

0 commit comments

Comments
 (0)