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

chore: Sync changes from the template #9

Open
wants to merge 1 commit into
base: alpha
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/template-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
extensions: dom, libxml, mbstring
tools: composer:v2
coverage: none

- name: Composer cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ hashFiles('composer.json') }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2]
test-bench: [^8.0]
php: [8.2, 8.3]
test-bench: [^8.0, ^9.0]

runs-on: packages
container: chialab/php:${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Composer cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ hashFiles('composer.json') }}
Expand All @@ -43,13 +43,13 @@ jobs:
php-cs-fixer:
name: php-cs-fixer
runs-on: packages
container: chialab/php:8.2
container: chialab/php:8.3
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Composer cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ hashFiles('composer.json') }}
Expand All @@ -67,7 +67,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run prettier
uses: actionsx/prettier@v3
Expand All @@ -79,17 +79,17 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2]
test-bench: [^8.0]
php: [8.2, 8.3]
test-bench: [^8.0, ^9.0]

runs-on: packages
container: chialab/php:${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Composer cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ hashFiles('composer.json') }}
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
"license": "MIT",
"require": {
"php": ">=8.2",
"illuminate/contracts": "^10.0"
"illuminate/contracts": "^10.0|^11.0"
},
"require-dev": {
"pestphp/pest": "^2.8",
"php-cs-fixer/shim": "~3.19.2",
"tenantcloud/php-cs-fixer-rule-sets": "~3.0.0",
"php-cs-fixer/shim": "^3.54",
"tenantcloud/php-cs-fixer-rule-sets": "~3.3.1",
"phpstan/phpstan": "~1.10.21",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-webmozart-assert": "^1.2",
"phpstan/phpstan-mockery": "^1.1",
"nunomaduro/larastan": "^2.6",
"orchestra/testbench": "^8.5"
"orchestra/testbench": "^8.5|^9.0"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 2 additions & 3 deletions tests/Service/RestrictCommandServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use LogicException;
use PHPUnit\Framework\Attributes\CoversClass;
use TenantCloud\RestrictCommands\Service\RestrictCommandService;
use Tests\TestCase;

/**
* @covers \RestrictCommandService
*/
#[CoversClass(\RestrictCommandService::class)]
class RestrictCommandServiceTest extends TestCase
{
public function testThrowExceptionRestrictedCommandAndEnvironment(): void
Expand Down
Loading