diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index e2991e6..e8b30cb 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,37 +2,39 @@ name: PHP Composer on: push: - branches: [ master, dev ] + branches: + - master + - dev pull_request: - branches: [ master ] + branches: + - master jobs: build: - runs-on: ${{ matrix.operating-system }} + strategy: matrix: - # operating-system: [ubuntu-latest, windows-latest, macOS-latest] operating-system: [ubuntu-latest] - php-versions: ['7.2', '7.3', '7.4', '8.0'] + php-versions: ['7.2', '7.3', '7.4', '8.0', '8.2'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - - name: Validate composer.json and composer.lock - run: composer validate --strict + - name: Validate composer.json and composer.lock + run: composer validate --strict - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v2 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- - - name: Install dependencies - run: composer install --prefer-dist --no-progress + - name: Install dependencies + run: composer install --prefer-dist --no-progress - - name: Run test suite - run: composer test \ No newline at end of file + - name: Run test suite + run: composer test diff --git a/composer.json b/composer.json index 12250b5..71e7085 100755 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ } ], "require": { - "illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0" + "illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0" }, "autoload": { "psr-4": { @@ -25,8 +25,8 @@ }, "minimum-stability": "stable", "require-dev": { - "orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0", - "phpunit/phpunit": "^8.3 || ^9.0" + "orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0", + "phpunit/phpunit": "^8.3 || ^9.0 || ^10.5" }, "scripts": { "test": "./vendor/bin/phpunit"