diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index 8270aa0..0d0bfe1 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -37,6 +37,28 @@ jobs: with: php-version: '8.2' - uses: actions/checkout@v3 + - name: Install Dependencies + run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + - name: Create Database + run: | + mkdir -p database + touch database/database.sqlite + - name: Execute tests (Unit and Feature tests) via PHPUnit + env: + DB_CONNECTION: testing + DB_DATABASE: database/database.sqlite + run: vendor/bin/phpunit + + + tests81: + + runs-on: ubuntu-latest + + steps: + - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e + with: + php-version: '8.1' + - uses: actions/checkout@v3 - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - name: Create Database diff --git a/composer.json b/composer.json index f32a57c..c36a39b 100644 --- a/composer.json +++ b/composer.json @@ -17,13 +17,12 @@ } ], "require": { - "php": ">=8.2.0", + "php": ">=8.1.0", "illuminate/support": "^10.0", "illuminate/validation": "^10.0" }, "require-dev": { - "orchestra/testbench": "^8.0", - "barryvdh/laravel-ide-helper": "^3.0" + "orchestra/testbench": "^8.0" }, "autoload": { "psr-4": { diff --git a/docker-compose.yml b/docker-compose.yml index 476a3a1..0c9fc12 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: php: - image: webdevops/php-dev:8.2 + image: webdevops/php-dev:8.1 volumes: - ./:/app/ working_dir: /app