Skip to content

Commit

Permalink
fix: PHP version and update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts committed Aug 12, 2024
1 parent ae95339 commit 6aa6ca1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "shopper/core" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "shopper/core" --dev --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Run PHPStan
run: ./vendor/bin/phpstan
8 changes: 1 addition & 7 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Set up Node
uses: actions/setup-node@v2
- name: Install dependencies
run: |
composer install --no-interaction
npm ci
run: composer install --no-interaction
- name: Run Laravel Pint
run: composer pint
- name: Run Prettier
run: npm run prettier
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
coverage: none
- name: Install Composer dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "shopper/core" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "shopper/core" --dev --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
env:
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.1|^8.2",
"ext-intl": "*",
"composer-runtime-api": "^2.1"
},
Expand All @@ -40,7 +40,6 @@
"pestphp/pest-plugin-livewire": "^2.1",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^10.5",
"reecem/mocker": "^1.2",
"shopper/core": "*",
"spatie/laravel-livewire-wizard": "^2.2",
"stevebauman/location": "^7.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"require": {
"ext-intl": "*",
"php": "^8.2",
"php": "^8.1|^8.2",
"filament/support": "^3.2",
"laravel/prompts": "^0.1.15",
"livewire/livewire": "^3.4",
Expand Down

0 comments on commit 6aa6ca1

Please sign in to comment.