From a9b7fccf3e1ce0673ac2f39d5308ee2552b36a2e Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Thu, 29 Feb 2024 09:21:25 +0100 Subject: [PATCH] Fixing workflow --- .github/workflows/run-tests.yml | 20 ++++++++++---------- composer.json | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 39ff7ee..6d551ed 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,29 +2,29 @@ name: run-tests on: push: - branches: [main] + branches: [master] pull_request: - branches: [main] + types: [opened, synchronize, reopened] jobs: test: runs-on: ${{ matrix.os }} strategy: - fail-fast: true + fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - php: [8.1] - laravel: [9.*] + php: ['8.1', '8.2','8.3'] + laravel: ['9.*','10.*'] stability: [prefer-lowest, prefer-stable] - include: - - laravel: 9.* - testbench: 7.* + exclude: + - laravel: '9.*' + stability: prefer-lowest name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -40,7 +40,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests diff --git a/composer.json b/composer.json index e7881b2..9ea8b68 100644 --- a/composer.json +++ b/composer.json @@ -29,8 +29,8 @@ "require-dev": { "laravel/pint": "^0.2.2", "nunomaduro/collision": "^6.0", - "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^7.0", + "larastan/larastan": "^2.0.1", + "orchestra/testbench": "^7.0|^8.0", "pestphp/pest": "^1.21", "pestphp/pest-plugin-laravel": "^1.1", "phpstan/extension-installer": "^1.1",