Skip to content

Commit 36ac9c6

Browse files
committed
Update build
1 parent 632366f commit 36ac9c6

4 files changed

Lines changed: 30 additions & 64 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
uses: shivammathur/setup-php@v2
2626
with:
2727
php-version: ${{ matrix.php-versions }}
28-
coverage: none
2928

3029
- name: Check PHP Version
3130
run: php -v
@@ -42,5 +41,16 @@ jobs:
4241
- name: Install dependencies
4342
run: composer install --prefer-dist --no-progress --no-suggest
4443

45-
- name: Run test suite
46-
run: composer test:all
44+
- name: Run PHP CodeSniffer
45+
run: composer sniffer:check
46+
47+
- name: Run PHPStan
48+
run: composer stan
49+
50+
- name: Run tests
51+
if: ${{ matrix.php-versions != '8.4' }}
52+
run: composer test
53+
54+
- name: Run tests with coverage
55+
if: ${{ matrix.php-versions == '8.4' }}
56+
run: composer test:coverage

.scrutinizer.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
[![Latest Version on Packagist](https://img.shields.io/github/release/odan/session.svg)](https://github.com/odan/session/releases)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)
55
[![Build Status](https://github.com/odan/session/workflows/build/badge.svg)](https://github.com/odan/session/actions)
6-
[![Code Coverage](https://scrutinizer-ci.com/g/odan/session/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/odan/session/?branch=master)
7-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/odan/session/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/odan/session/?branch=master)
86
[![Total Downloads](https://img.shields.io/packagist/dt/odan/session.svg)](https://packagist.org/packages/odan/session/stats)
97

108
A middleware (PSR-15) oriented session and flash message handler for PHP.

composer.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "odan/session",
3-
"type": "library",
43
"description": "A Slim session handler",
4+
"license": "MIT",
5+
"type": "library",
56
"keywords": [
67
"slim",
78
"session"
89
],
910
"homepage": "https://github.com/odan/session",
10-
"license": "MIT",
1111
"require": {
1212
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
1313
"psr/http-message": "^1 || ^2",
@@ -16,16 +16,29 @@
1616
},
1717
"require-dev": {
1818
"friendsofphp/php-cs-fixer": "^3",
19-
"middlewares/utils": "^3",
19+
"middlewares/utils": "^3 || ^4",
2020
"nyholm/psr7": "^1.5",
2121
"phpstan/phpstan": "^2",
2222
"phpunit/phpunit": "^11",
2323
"squizlabs/php_codesniffer": "^3"
2424
},
25+
"autoload": {
26+
"psr-4": {
27+
"Odan\\Session\\": "src/"
28+
}
29+
},
30+
"autoload-dev": {
31+
"psr-4": {
32+
"Odan\\Session\\Test\\": "tests/"
33+
}
34+
},
35+
"config": {
36+
"sort-packages": true
37+
},
2538
"scripts": {
2639
"cs:check": [
2740
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
28-
"php-cs-fixer fix --dry-run --format=txt --verbose --config=.cs.php --ansi"
41+
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi"
2942
],
3043
"cs:fix": [
3144
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
@@ -45,18 +58,5 @@
4558
"@putenv XDEBUG_MODE=coverage",
4659
"phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-clover build/coverage/clover.xml --coverage-html build/coverage --coverage-text"
4760
]
48-
},
49-
"autoload": {
50-
"psr-4": {
51-
"Odan\\Session\\": "src/"
52-
}
53-
},
54-
"autoload-dev": {
55-
"psr-4": {
56-
"Odan\\Session\\Test\\": "tests/"
57-
}
58-
},
59-
"config": {
60-
"sort-packages": true
6161
}
6262
}

0 commit comments

Comments
 (0)