Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
apfelbox committed Dec 21, 2023
1 parent 80a687a commit 91aa970
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ jobs:

strategy:
matrix:
php: ['8.0', '8.1']
php: ['8.2', '8.3']

steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php }}"
tools: "composer, composer-normalize, cs2pr"
tools: "composer"

- name: Display versions
run: |
Expand All @@ -31,17 +31,10 @@ jobs:
- name: Install Composer
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction

- name: Composer Normalize
run: composer-normalize --indent-style tab --indent-size 1 --dry-run --ansi
- name: Lint
run: composer run-script lint

- name: PHP CS Fixer
run: "./vendor/bin/php-cs-fixer fix --diff --config vendor-bin/test/vendor/21torr/php-cs/.php-cs-fixer.dist.php --dry-run --no-interaction --ansi --format=checkstyle | cs2pr"
- name: Test Suite
run: composer run-script test
env:
PHP_CS_FIXER_IGNORE_ENV: 1

- name: PHPStan
run: "./vendor/bin/phpstan analyze -c vendor-bin/test/vendor/21torr/php-cs/phpstan/lib.neon . --ansi --error-format=checkstyle | cs2pr"

- name: PHPUnit
# --teamcity output used by `mheap/phpunit-matcher-action`
run: "./vendor/bin/simple-phpunit --teamcity"
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

* (feature) Allow Symfony 7+ and `21torr/rad` 3+.
* (improvement) Require PHP 8.2+
* (internal) Update CI.


2.1.2
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
includes:
- vendor-bin/test/vendor/21torr/php-cs/phpstan/lib.neon

parameters:
level: 9
10 changes: 10 additions & 0 deletions vendor-bin/c-norm/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"require": {
"ergebnis/composer-normalize": "^2.41"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
2 changes: 1 addition & 1 deletion vendor-bin/cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"friendsofphp/php-cs-fixer": "^3.6"
"21torr/php-cs-fixer": "^1.0.2"
}
}

0 comments on commit 91aa970

Please sign in to comment.