Skip to content

Commit

Permalink
test phpcs-fiixer
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicLuidold committed Apr 3, 2024
1 parent 335c27e commit fd47291
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/common/composer-install/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ inputs:
type: string

install-doctrine-annotations:
description: If the doctrine/annotations package should be additionally installed as a dev dependency
description: If the doctrine/annotations package should be additionally installed as a dependency
required: true
type: boolean

composer-flags:
description: Additional flags that are passed to the `composer install` step
description: Additional flags that are passed to the `composer update` step
required: false
type: string

Expand Down
38 changes: 32 additions & 6 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
- "*.x"
- master
push:
branches:
- "*.x"
- master
# branches:
# - "*.x"
# - master

env:
fail-fast: true
Expand Down Expand Up @@ -69,9 +69,35 @@ jobs:
- name: Setup dependencies
uses: ./.github/workflows/common/composer-install
with:
symfony-version: ${{ matrix.symfony-require }}
install-doctrine-annotations: ${{ matrix.doctrine-annotations }}
composer-flags: ${{ matrix.composer-flags }}
symfony-version: matrix.symfony-require
install-doctrine-annotations: matrix.doctrine-annotations
composer-flags: matrix.composer-flags

- name: PHPUnit Tests
run: vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text

php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Install PHP without coverage
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer, flex
coverage: pcov

- name: Setup dependencies
uses: ./.github/workflows/common/composer-install
with:
symfony-version: "7.0.*"
install-doctrine-annotations: false

- name: Run PHP-CS-Fixer
run: composer phpcs-check

0 comments on commit fd47291

Please sign in to comment.