Skip to content

Commit

Permalink
Chore: Update packages (#27)
Browse files Browse the repository at this point in the history
+ removes composer.lock from repository to avoid being locked on a specific PHP version.
  • Loading branch information
bpolaszek authored Mar 13, 2024
1 parent a868e3b commit b0350eb
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 7,569 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,28 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '35 8 * * 1'

jobs:
code-style:
name: Code Style & Static Analysis
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
php:
- 8.1
- 8.2
- 8.3
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: mbstring, pcntl
php-version: ${{ matrix.php }}
extensions: mbstring, pcntl, curl, zip

- name: Validate composer.json and composer.lock
run: composer validate
Expand All @@ -34,24 +42,28 @@ jobs:

unit-tests:
name: Unit tests
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
php:
- 8.1
- 8.2
- 8.3
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: ${{ matrix.php }}
extensions: mbstring, pcntl, curl, zip
coverage: pcov

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run tests
env:
TRANSPORT_DSN: ${{ matrix.transport }}
run: vendor/bin/pest --testsuite='Unit tests' --coverage --coverage-clover=coverage.xml

- name: Upload coverage to Codecov
Expand All @@ -61,7 +73,7 @@ jobs:

integration-tests:
name: Integration tests
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
services:
redis:
image: redis:6.0
Expand All @@ -75,14 +87,18 @@ jobs:
- "redis://localhost?size=10000&trimInterval=0.5&pingInterval=0"
- "redis://localhost?size=10000&trimInterval=0.5&pingInterval=0.1"
- "redis://localhost?size=10000&trimInterval=0.5&pingInterval=0.1&readTimeout=2"
php:
- 8.1
- 8.2
- 8.3
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: ${{ matrix.php }}
extensions: mbstring, pcntl, curl, zip
coverage: pcov

Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/security-check.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/public/bundles/
/var/
/vendor/
/composer.lock
###< symfony/framework-bundle ###
###> squizlabs/php_codesniffer ###
/.phpcs-cache
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ See what features are covered and what aren't (yet) [here](#feature-coverage).

## Installation

PHP 8.1 is required to run the hub.
PHP 8.1+ is required to run the hub.

### As a standalone Mercure hub

Expand Down
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@
"react/async": "^4.0.0",
"react/promise-timer": "^1.10",
"rize/uri-template": "^0.3.4",
"symfony/console": "^5.4.0|^6.0.0",
"symfony/dotenv": "^5.4.0|^6.0.0",
"symfony/console": "^5.4.0|^6.0.0|^7.0.0",
"symfony/dotenv": "^5.4.0|^6.0.0|^7.0.0",
"symfony/flex": "^1.17|^2",
"symfony/framework-bundle": "^5.4.0|^6.0.0",
"symfony/options-resolver": "^5.4.0|^6.0.0",
"symfony/property-access": "^5.4.0|^6.0.0",
"symfony/property-info": "^5.4.0|^6.0.0",
"symfony/runtime": "^5.4.0|^6.0.0",
"symfony/serializer": "^5.4.0|^6.0.0",
"symfony/uid": "^5.4.0|^6.0.0",
"symfony/yaml": "^5.4.0|^6.0.0"
"symfony/framework-bundle": "^5.4.0|^6.0.0|^7.0.0",
"symfony/options-resolver": "^5.4.0|^6.0.0|^7.0.0",
"symfony/property-access": "^5.4.0|^6.0.0|^7.0.0",
"symfony/property-info": "^5.4.0|^6.0.0|^7.0.0",
"symfony/runtime": "^5.4.0|^6.0.0|^7.0.0",
"symfony/serializer": "^5.4.0|^6.0.0|^7.0.0",
"symfony/uid": "^5.4.0|^6.0.0|^7.0.0",
"symfony/yaml": "^5.4.0|^6.0.0|^7.0.0"
},
"require-dev": {
"clue/reactphp-eventsource": "^1.0.0",
"pestphp/pest": "^1.21",
"phpstan/phpstan": "^1.2",
"react/child-process": "^0.6.4",
"squizlabs/php_codesniffer": "^3.6",
"symfony/http-client": "^5.4.0|^6.0.0",
"symfony/process": "^5.4.0|^6.0.0"
"symfony/http-client": "^5.4.0|^6.0.0|^7.0.0",
"symfony/process": "^5.4.0|^6.0.0|^7.0.0"
},
"config": {
"optimize-autoloader": true,
Expand Down
Loading

0 comments on commit b0350eb

Please sign in to comment.