Skip to content

Commit

Permalink
run test suite with carbon v2 and v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Feb 7, 2024
1 parent fc6c650 commit 86effaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1]
stability: [prefer-lowest, prefer-stable]
carbon: [2.72, 3.0]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand All @@ -32,7 +33,9 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
run: |
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
composer require nesbot/carbon:^${{ matrix.carbon }}.* --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"require": {
"php": "^8.1",
"ext-intl": "*",
"nesbot/carbon": "^2.72.1"
"nesbot/carbon": "^2.72.1|^3.0"
},
"require-dev": {
"laravel/pint": "^1.0",
Expand Down

0 comments on commit 86effaa

Please sign in to comment.