Skip to content

github-actions(deps): bump codecov/codecov-action from 5.1.1 to 5.1.2 #155

github-actions(deps): bump codecov/codecov-action from 5.1.1 to 5.1.2

github-actions(deps): bump codecov/codecov-action from 5.1.1 to 5.1.2 #155

Workflow file for this run

name: "PHP"
on:
schedule:
- cron: '0 5 * * *'
pull_request:
push:
branches:
- "develop"
- "master"
env:
REQUIRED_PHP_EXTENSIONS: "ctype, filter, hash, iconv, json"
jobs:
coding-standards:
name: "Coding Standards"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.3"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@2.24.0"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
tools: "composer:v2"
- name: "Validate composer.json"
run: "composer validate"
- name: "Install dependencies with composer"
uses: "ramsey/composer-install@3.0.0"
with:
composer-options: "--no-scripts"
- name: "Run ergebnis/composer-normalize"
run: "composer normalize"
- name: "Run friendsofphp/php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --diff --verbose"
static-code-analysis:
name: "Static Code Analysis"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.3"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
- name: "Install dependencies with composer"
uses: "ramsey/composer-install@3.0.0"
- name: "Static code analysis"
run: "vendor/bin/phpstan analyse --configuration phpstan.neon.dist --no-progress"
tests:
name: "Tests"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.3"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
- name: "Install dependencies with composer"
uses: "ramsey/composer-install@3.0.0"
- name: "Run unit tests"
run: "vendor/bin/phpunit --configuration=phpunit.xml.dist --coverage-clover=.build/logs/clover.xml"
- name: 'Upload coverage reports to Codecov'
uses: 'codecov/codecov-action@v5.1.2'
with:
files: './.build/logs/clover.xml'
token: ${{ secrets.CODECOV_TOKEN }}