Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github actions configuration #127

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: "Run unit tests"
on:
- push
- pull_request
- workflow_dispatch

env:
COMPOSER_MEMORY_LIMIT: -1
Expand All @@ -11,13 +12,16 @@ jobs:
test:
name: "Build"
runs-on: ubuntu-latest

strategy:
max-parallel: 12
matrix:
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', 8.3']
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
package-release: [dist]

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

- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
Expand All @@ -26,7 +30,9 @@ jobs:
extensions: exif,json,mbstring,dom

- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.package-release }}

- name: Run unit tests
run: ./vendor/bin/phpunit
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"sabberworm/php-css-parser": "^8.4"
},
"require-dev": {
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5"
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11"
}
}
1 change: 1 addition & 0 deletions tests/Svg/PathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public static function commandProvider(): array
* @param string $commandSequence
* @param array $expected
*/
#[\PHPUnit\Framework\Attributes\DataProvider('commandProvider')]
public function testParseCommands(string $commandSequence, array $expected)
{
$result = Path::parse($commandSequence);
Expand Down
Loading