Skip to content

Prefix identifiers #375

Prefix identifiers

Prefix identifiers #375

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
jobs:
ci:
name: Run CI
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/setup-php-action
- name: Setup PHP 8.2
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: sqlite, pdo_sqlite
coverage: xdebug
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: composer install --prefer-dist
- name: Install .env file
run: cp .env.test .env
- name: Run PHPStan
run: vendor/bin/phpstan analyse
- name: Run PHPcs fixer dry-run
run: vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --config=.php-cs-fixer.dist.php
- name: Run test suite
run: vendor/bin/phpunit --testsuite unit --fail-on-incomplete --log-junit junit.xml --coverage-clover clover.xml
# https://github.com/marketplace/actions/codecov
- name: Send test coverage to codecov.io
uses: codecov/codecov-action@v3
with:
files: clover.xml
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
token: ${{ secrets.CODECOV_TOKEN }}