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
22 changes: 17 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,27 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: mbstring xdebug
coverage: xdebug

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

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- uses: php-actions/composer@v5
with:
php_version: 8.1
php_extensions: mbstring xdebug
- run: composer install --no-interaction --prefer-dist

- name: PHPStan Analysis
run: ./vendor/bin/phpstan analyse --memory-limit=512M

- name: PHPUnit Tests
run: ./vendor/bin/phpunit
Expand All @@ -29,3 +40,4 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: ./coverage/result.xml
token: ${{ secrets.CODECOV_TOKEN }}
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"keywords": ["css", "stylesheet", "minifier", "minify", "parser", "compiler"],
"minimum-stability": "stable",
"require": {
"php": ">=8.1",
"hexydec/tokenise": "1.0.3"
"php": ">=8.4",
"hexydec/tokenise": "1.0.4"
},
"autoload": {
"classmap": ["src/"]
Expand All @@ -25,7 +25,10 @@
"test": "phpunit"
},
"require-dev": {
"phpunit/phpunit": "^10.5",
"phpstan/phpstan": "^1.10"
"phpunit/phpunit": "^13.0",
"phpstan/phpstan": "^2.0"
},
"config": {
"discard-changes": true
}
}
Loading
Loading