Skip to content

Commit

Permalink
Merge pull request #121 from mapado/jd-feat-php81
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeniau committed Sep 26, 2023
2 parents fb0e1a1 + 6a8afd0 commit 34748fe
Show file tree
Hide file tree
Showing 21 changed files with 2,203 additions and 13,341 deletions.
7 changes: 0 additions & 7 deletions .atoum.php

This file was deleted.

34 changes: 15 additions & 19 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PHP Composer

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request: ~

permissions:
Expand All @@ -12,35 +12,31 @@ jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
include:
- php: "7.4"
- php: "8.2"
scenario: "symfony6"
- php: "8.1"
scenario: "symfony6"
- php: "8.2"
scenario: "symfony5"
- php: "8.1"
scenario: "symfony5"
- php: "7.4"
scenario: "symfony4-php74"
- php: "7.3"
- php: "8.2"
scenario: "symfony4"
composer: "v1"
- php: "7.3"
scenario: "symfony3"
composer: "v1"
- php: "7.3"
scenario: "symfony2"
dependencies: "lowest"
- php: "7.2"
- php: "8.1"
scenario: "symfony4"
dependencies: "lowest"

steps:
- uses: actions/checkout@v3

- name: Setup PHP with composer
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:${{ matrix.composer || 'v2' }}
tools: composer:v2

# - name: Validate composer.json and composer.lock
# run: composer validate --strict
Expand All @@ -56,9 +52,9 @@ jobs:

- name: Install dependencies
run: .scenarios.lock/install "${{ matrix.scenario }}" "${{ matrix.dependencies }}"

- name: PHPStan
run: vendor/bin/phpstan analyse -c phpstan.neon src/

- name: atoum
run: vendor/bin/atoum
4 changes: 2 additions & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# vim:ft=yaml
"src/**/*.php":
- "yarn run prettier --write"
- "vendor/bin/php-cs-fixer fix --config=.php_cs"
- "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php"
- "git add"

"Tests/**/*.php":
- "vendor/bin/php-cs-fixer fix --config=.php_cs"
- "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php"
- "git add"
File renamed without changes.
86 changes: 0 additions & 86 deletions .scenarios.lock/symfony2/composer.json

This file was deleted.

Loading

0 comments on commit 34748fe

Please sign in to comment.