Skip to content
Open
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
54 changes: 5 additions & 49 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,12 @@ name: Continuous Integration

on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
operating-system:
- ubuntu-latest
php-version:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
tools: none
ini-values: assert.exception=1, zend.assertions=1

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php${{ matrix.php-version }}-composer-
${{ runner.os }}-composer-

- name: Install dependencies
run: composer update --no-interaction --no-progress --prefer-dist

- name: Run test suite
run: ./vendor/bin/phpunit
ci:
uses: ray-di/.github/.github/workflows/continuous-integration.yml@v1
with:
old_stable: '["8.0", "8.1", "8.2", "8.3", "8.4", "8.5"]'
current_stable: 8.6
17 changes: 9 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
"ray/aura-session-module": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"doctrine/coding-standard": "^14.0",
"phpstan/phpstan": "^1.10",
"squizlabs/php_codesniffer": "^4.0",
"vimeo/psalm": "^5.0 || ^6.0",
"phpmd/phpmd": "^2.13",
"maglnet/composer-require-checker": "^4.0"
"bamarni/composer-bin-plugin": "^1.4",
"phpunit/phpunit": "^9.5"
},
"license": "MIT",
"autoload":{
Expand Down Expand Up @@ -50,7 +45,13 @@
"config": {
"allow-plugins": {
"aura/installer-default": true,
"dealerdirect/phpcodesniffer-composer-installer": true
"bamarni/composer-bin-plugin": true
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": true
}
}
}
15 changes: 15 additions & 0 deletions vendor-bin/tools/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"require-dev": {
"doctrine/coding-standard": "^14.0",
"maglnet/composer-require-checker": "^4.0",
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^1.10",
"squizlabs/php_codesniffer": "^4.0",
"vimeo/psalm": "^5.0 || ^6.0"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading