Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
pull_request:

permissions:
contents: read

env:
PHP_VERSION: '8.3'
COMPOSER_ROOT_VERSION: '1.2.0'

jobs:
auto-review:
name: Auto review
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Configure PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}

- name: Install dependencies
run: composer update --no-progress --optimize-autoloader

- name: Run review
run: composer review

tests:
name: Tests
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Use PHP ${{ env.PHP_VERSION }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}

- name: Install dependencies
run: composer update --no-progress --optimize-autoloader

- name: Run tests
run: composer tests
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
},
"require-dev": {
"phpmd/phpmd": "^2.15",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^11.5",
"phpunit/phpunit": "^12.1",
"phpstan/phpstan": "^2.1",
"infection/infection": "^0.32",
"tiny-blocks/collection": "^1.10",
"squizlabs/php_codesniffer": "^3.11"
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ parameters:
- '#method#'
- '#expects#'
- '#should return#'
- '#is used zero times#'
- '#type mixed supplied#'
- '#not specify its types#'
- '#no value type specified#'
Expand Down