diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d17753..3f6eb21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,6 +3,9 @@ on: push: branches: - main + pull_request: + branches: + - main jobs: # Unit tests back (phpunit) @@ -19,6 +22,10 @@ jobs: env: LARAVEL: 12.* TESTBENCH: 10.* + - php: 8.5 + env: + LARAVEL: 12.* + TESTBENCH: 10.* env: ${{ matrix.env }} steps: - uses: actions/checkout@v2 @@ -40,5 +47,7 @@ jobs: run: | composer require "laravel/framework:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" --no-interaction --no-update --prefer-dist composer update --prefer-stable --prefer-dist --no-interaction + - name: Run Security Audit + run: composer audit - name: Execute tests (Unit and Feature tests) via Pest run: ./vendor/bin/pest diff --git a/composer.json b/composer.json index 161ea12..a8ef165 100755 --- a/composer.json +++ b/composer.json @@ -8,18 +8,18 @@ "license": "MIT", "type": "project", "require": { - "php": "8.4.*", + "php": "^8.4", "laravel/framework": "^11.0|^12.0" }, "require-dev": { "fakerphp/faker": "^1.19.0", "mockery/mockery": "^1.5.0", - "pestphp/pest": "^3.0", - "pestphp/pest-plugin-laravel": "^3.0", - "phpunit/phpunit": "^11.0", + "pestphp/pest": "^3.0|^4.0", + "pestphp/pest-plugin-laravel": "^3.0|^4.0", + "phpunit/phpunit": "^11.0|^12.0", "doctrine/dbal": "^3.5", "orchestra/testbench": "9.*|10.*", - "pestphp/pest-plugin-drift": "^3.0" + "pestphp/pest-plugin-drift": "^3.0|^4.0" }, "autoload": { "psr-4": {