Skip to content

Commit

Permalink
we only need to run php-cs-fixer once
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed Apr 2, 2024
1 parent 89272e2 commit 18378c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 59 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/ci-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,49 +13,6 @@ env:
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"

jobs:
coding-standards:
name: "Coding Standards (${{ matrix.php-version }})"

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version:
- '8.1'

steps:
-
name: Checkout code
uses: "actions/checkout@v3"

-
name: Install PHP
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"

-
name: Validate composer.json
run: "composer validate --strict --no-check-lock"

-
name: Composer install
uses: "ramsey/composer-install@v2"
with:
composer-options: "--no-scripts"

-
name: Composer install php-cs-fixer
uses: "ramsey/composer-install@v2"
with:
composer-options: "--no-scripts --working-dir=tools/php-cs-fixer"

-
name: Run PHP-CS-Fixer
run: "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff"

test:
name: "PHP ${{ matrix.php-version }} + @${{ matrix.symfony-version }} ${{ matrix.dependency-versions }} deps"

Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/ci-static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@ env:

jobs:
coding-standards:
name: "Coding Standards (${{ matrix.php-version }})"
name: "Coding Standards"

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version:
- '8.1'

steps:
-
name: Checkout code
Expand All @@ -32,9 +26,6 @@ jobs:
-
name: Install PHP
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"

-
name: Validate composer.json
Expand All @@ -61,12 +52,6 @@ jobs:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version:
- '8.1'

steps:
- name: Checkout
uses: "actions/checkout@v4"
Expand Down

0 comments on commit 18378c9

Please sign in to comment.