diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f47f51d..425461c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,31 +1,34 @@ name: run-tests -on: [push, pull_request] +on: + - push + - pull_request jobs: - tests: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: true - matrix: - os: [ubuntu-latest] - php: [8.0, 7.4, 7.3, 8.1] - dependency-version: [prefer-lowest, prefer-stable] - - name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - - - name: Install dependencies - run: | - composer update --prefer-dist --no-interaction --${{ matrix.dependency-version }} - - name: Execute tests - run: vendor/bin/phpunit \ No newline at end of file + tests: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest] + php: [7.3, 7.4, 8.0, 8.1, '8.2'] + dependency-version: [prefer-lowest, prefer-stable] + + name: P${{ matrix.php }} - ${{ matrix.dependency-version }} + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + + - name: Install dependencies + run: composer update --prefer-dist --no-interaction --${{ matrix.dependency-version }} + + - name: Execute tests + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index fb10ffd..fb81de3 100644 --- a/composer.json +++ b/composer.json @@ -4,11 +4,11 @@ "require": { "php": "^7.3|^7.4|^8.0", "ext-intl": "*", - "illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0" + "illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0" }, "require-dev": { - "phpunit/phpunit": "^9.3.9", - "orchestra/testbench": "^6.23|^7.0.0|^8.0", + "phpunit/phpunit": "^9.3.9|^10.5", + "orchestra/testbench": "^6.23|^7.0.0|^8.0|^9.0", "laravel/legacy-factories": "^1.3.0" }, "license": "MIT",