diff --git a/.github/workflows/test-php8.2.yml b/.github/workflows/test-php8.2.yml deleted file mode 100644 index 6fc54a9..0000000 --- a/.github/workflows/test-php8.2.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: PHP tests - -# Run on push, PR and manually -on: - push: - branches: - - stable - - develop - pull_request: - workflow_dispatch: - -jobs: - matrix-build: - name: PHPUnit Tests Matrix - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - php-version: [8.2, 8.3] - laravel-version: - [ - "9.*", # Test latest version - "10.*", # Test latest version - ] - - steps: - - uses: actions/checkout@v3 - - - name: Setup PHP - uses: shivammathur/setup-php@master - with: - php-version: ${{ matrix.php-version }} - - - name: Composer update - run: composer self-update >/dev/null 2>&1 - - - name: Lock laravel/framework version - env: - LARAVEL_VERSION: ${{ matrix.laravel-version }} - run: composer require laravel/framework:${{ matrix.laravel-version }} --no-update - - - name: Vendor update - run: - composer config minimum-stability dev && - composer update --prefer-stable --prefer-dist --no-progress - - - name: Run test suites - run: composer run-script test - - # - name: Analyze - # run: vendor/bin/phpstan analyse -c phpstan.neon ./src/ - - # - name: phpcs - # run: php vendor/bin/phpcs --standard=PSR12 ./src/ diff --git a/.github/workflows/latest.yml b/.github/workflows/tests.yml similarity index 66% rename from .github/workflows/latest.yml rename to .github/workflows/tests.yml index bdbde3a..4f8a150 100644 --- a/.github/workflows/latest.yml +++ b/.github/workflows/tests.yml @@ -1,20 +1,39 @@ -name: "Test on Latest Laravel" +name: "Test on S" # Triggers the workflow on push or pull request events -on: [push, pull_request] +on: + push: + branches: + - stable + - develop + pull_request: + workflow_dispatch: jobs: test: name: PHPUnit Tests runs-on: ubuntu-latest + matrix-build: + name: PHPUnit Tests Matrix + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php-version: [8.2, 8.3] + laravel-version: + [ + "9.*", # Test Laravel 9 + "10.*", # Test latest version + ] steps: - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@master with: - php-version: 8.2 + php-version: ${{ matrix.php-version }} - name: Composer self update run: composer self-update >/dev/null 2>&1 @@ -32,8 +51,8 @@ jobs: - name: Lock laravel/framework version env: - LARAVEL_VERSION: 10.5.0 - run: composer require laravel/framework:10.5.0 --no-update + LARAVEL_VERSION: ${{ matrix.laravel-version }} + run: composer require laravel/framework:${{ matrix.laravel-version }} --no-update - name: Vendor update if: steps.composer-cache.outputs.cache-hit != 'true'