Skip to content

chore: remove code smell #275

chore: remove code smell

chore: remove code smell #275

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer
extensions: :xdebug
- name: Composer
run: |
composer install --quiet --no-ansi --no-interaction --no-progress --prefer-dist
composer normalize --dry-run
composer validate
- name: PHPStan
run: composer phpstan -- --ansi
- name: Psalm
run: composer psalm
unit-tests:
name: Unit Tests
needs: [static-analysis]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer
coverage: xdebug
- name: Composer
run: |
composer install --quiet --no-ansi --no-interaction --no-progress --prefer-dist
composer normalize --dry-run
composer validate
- name: PHPUnit
run: vendor/bin/phpunit || true
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}