From 9ff95a65beaeb5e9bca85c49486316df4751ad53 Mon Sep 17 00:00:00 2001 From: 021-projects <20326979+021-projects@users.noreply.github.com> Date: Sun, 17 Mar 2024 10:55:40 +0200 Subject: [PATCH] test: add php 8.2, 8.3 workflows --- .github/workflows/tests-php-8.2.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/tests-php-8.3.yml | 29 +++++++++++++++++++++++++++++ README.md | 2 +- 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/tests-php-8.2.yml create mode 100644 .github/workflows/tests-php-8.3.yml diff --git a/.github/workflows/tests-php-8.2.yml b/.github/workflows/tests-php-8.2.yml new file mode 100644 index 0000000..18a195a --- /dev/null +++ b/.github/workflows/tests-php-8.2.yml @@ -0,0 +1,29 @@ +name: Tests + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + laravel-tests: + + runs-on: ubuntu-latest + + steps: + - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e + 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: sqlite + DB_DATABASE: database/database.sqlite + run: composer test diff --git a/.github/workflows/tests-php-8.3.yml b/.github/workflows/tests-php-8.3.yml new file mode 100644 index 0000000..df9ecd9 --- /dev/null +++ b/.github/workflows/tests-php-8.3.yml @@ -0,0 +1,29 @@ +name: Tests + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + laravel-tests: + + runs-on: ubuntu-latest + + steps: + - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e + with: + php-version: '8.3' + - 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: sqlite + DB_DATABASE: database/database.sqlite + run: composer test diff --git a/README.md b/README.md index ba1e1bd..c3e60a7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@