Skip to content

Commit

Permalink
Updates workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan Casey committed Jan 19, 2022
1 parent 0eae47f commit 2fc473a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1]
php: [7.4, 8.0, 8.1]
laravel: [8.*, 9.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 8.*
testbench: 6.*
- laravel: 9.*
testbench: 7.*
exclude:
- laravel: 9.*
php: 7.4
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- uses: actions/checkout@v2
Expand All @@ -36,5 +39,7 @@ jobs:
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Valdidate Dependencies are consistent
run: vendor/bin/monorepo-builder validate
- name: Execute tests
run: vendor/bin/phpunit --verbose
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"require": {
"akaunting/laravel-money": "^1.2",
"ext-pdo_sqlite": "*",
"illuminate/contracts": "^9.0",
"illuminate/contracts": "^8.0|^9.0",
"illuminate/database": "^8.40|^9.0",
"illuminate/support": "^8.0|^9.0",
"php": "^8.0"
Expand Down
4 changes: 3 additions & 1 deletion monorepo-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
],
],
'require-dev' => [
'orchestra/testbench' => '^6.2',
'orchestra/testbench' => '^6.2|^7.0',
'phpunit/phpunit' => '^9.4',
'symplify/monorepo-builder' => '^9.0',
],
'minimum-stability' => 'dev',
'prefer-stable' => true
]);

$parameters->set(Option::DATA_TO_REMOVE, [
Expand Down

0 comments on commit 2fc473a

Please sign in to comment.